12 2011 档案

摘要:代码,关于操作XML可以参考 SQL操作XMLxml中的特殊字符http://www.cnblogs.com/jacklee1981/archive/2011/01/24/1943175.htmlselect * from TestCreate table Test( Id int identity primary key, UserName varchar(20) default '', Age int default 0)declare @xmlText varcha... 阅读全文
posted @ 2011-12-14 11:55 忧忧夏天 阅读(4870) 评论(0) 推荐(0)
摘要: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 忧忧夏天 阅读(5994) 评论(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 忧忧夏天 阅读(458) 评论(0) 推荐(0)