首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

js让旋钮几秒钟失效

2012-11-01 
js让按钮几秒钟失效input typebutton value 失效5秒 onclickthis.disabledtruesetTimeout(thi

js让按钮几秒钟失效

input type="button" value=" 失效5秒 " onclick="this.disabled=true;setTimeout('this.disabled=false',5000);">

?

<input type="button" value=" 失效5秒 " onclick="{
? this.disabled = true;
? var me = this;
? setTimeout(function() { me.disabled = false; }, 5000);
}">

?

<input type="button" value="失效5秒" onclick="setTimeout((function(me){me.disabled=true;return function(){me.disabled=false;};})(this),5000);">

<input type="button" value=" 失效5秒 " id="me" onclick="this.disabled=true;setTimeout('me.disabled=false',5000);">


<input type="button" value="失效5秒" onclick="setTimeout((function(Mes){Mes.disabled=true;return function(){Mes.disabled=false;};})(this),5000);">

热点排行