2008-06-03

javascript中this的问题

关键字: this
var Test = Class.create(); Test.prototype = { initialize : function() { this.txt = "111"; new Ajax.Request("/test/test",{method:"post",parameters:"",onComplete: function(response){alert(this.txt);this.txt = response.responseText;}, asynchronous:false}); }, getTxt : funct ...
superwen
搜索本博客
博客分类
最近加入圈子
存档
最新评论
评论排行榜