摘要:
1 $("form").submit(function () {2 console.log("提交了");3 $("input:submit").attr("disabled", "true");4 setTimeout(function () {5 $("input:submit").removeAttr("disabled");6 }, 3000);7 });网上看到老外写的 1 // jQuery plugin to prevent double.. 阅读全文
posted @ 2013-07-08 16:26
小猩猩君
阅读(336)
评论(0)
推荐(0)
摘要:
1 function Klass() { 2 this.id = new Date().getTime(); 3 this.name = ''; 4 } 5 6 Klass.prototype.get = function() { 7 return this.id; 8 }; 9 10 Klass.prototype.set = function(name) {11 this.name = name;12 };13 14 var test1 = new Klass();15 var test2 = new Klass();16 test1.set('tttt... 阅读全文
posted @ 2013-07-08 08:58
小猩猩君
阅读(130)
评论(0)
推荐(0)

浙公网安备 33010602011771号