摘要:
1 当有大量元素需要注册事件的时候可以用事件委托实现测试代码function init() { var d = document.getElementById("test"); d.appendChild(createUl()); console.profile("f1"); f1(); console.profileEnd("f1"); console.profile("f2"); f2(d); console.pro... 阅读全文
posted @ 2011-12-07 11:59
忧忧夏天
阅读(5991)
评论(1)
推荐(4)
摘要:
1 一个XMLHttpRequest简单封装DEMO,详细参考http://www.w3school.com.cn/xmldom/dom_http.aspvar ajax = { request: null, options: { method: "", url: "", asyn: null, dataType: "", success: function(obj) { }, ... 阅读全文
posted @ 2011-12-07 11:23
忧忧夏天
阅读(455)
评论(0)
推荐(0)
浙公网安备 33010602011771号