摘要:
setTimeout(function () { $(obj).attr("onclick", "").bind("click", function () { MagRestore(this) }); }, 1); 阅读全文
posted @ 2013-01-24 16:10 shenyixin 阅读(1469) 评论(0) 推荐(0)
|
||
|
摘要:
setTimeout(function () { $(obj).attr("onclick", "").bind("click", function () { MagRestore(this) }); }, 1); 阅读全文
posted @ 2013-01-24 16:10 shenyixin 阅读(1469) 评论(0) 推荐(0)
摘要:
var js = "alert('B:' + this.id); return false;";// creates a function from the "js" stringvar newclick = eval("(function(){"+js+"});");// clears onclick then sets click$("#anchor").attr('onclick', '').click(newclick);来源:changi 阅读全文
posted @ 2013-01-24 15:20 shenyixin 阅读(1038) 评论(0) 推荐(0) |
||