摘要: function runonce(f) { var ed = false; return function() { if (ed) return; ed = true; f.apply(null, arguments); };}var hi = runonce(function(s) { alert(s); }); 阅读全文
posted @ 2010-06-05 18:20 ued 阅读(449) 评论(0) 推荐(0) 编辑