摘要: 如果你了解了js面向对象,HTTP协议,那么就自己动手写一个AJAX框架就可以了。小技术,大家不要笑啊!源码:(注释就不写了,应该不难看懂的)var ajax = { _params: null, _callback: null, _xhr: null, _createXHR: function () { if (window.ActiveXObject) { _xhr = new ActiveXObject("Microsoft.XMLHTTP"); //IE } else if (window.XMLHttpRequest) { _xhr = new XMLHttpRe 阅读全文
posted @ 2011-03-17 13:28 山之松 阅读(207) 评论(0) 推荐(0) 编辑