JavaScript回调函数陷阱
摘要:先看一段代码: var tst = { obj:null, fun:function(){this.obj();} }; tst.obj = function(){alert('hello,world');}; tst.fun(); 没任何问题,可以正常运行. 那么再看下边这个(典型AJAX应用): var ajax = { initHttp:function() { ...
阅读全文
posted @
2008-04-05 12:33
JoeYoung
阅读(2732)
推荐(0) 编辑