日期:2014-05-16  浏览次数:20448 次

js中的invoke 疑问??
if(typeof   Webdisk   ==   "undefined ")   Webdisk={};
if(typeof   Webdisk.reg   ==   "undefined ")   Webdisk.reg={};
Webdisk.reg_class   =   function()   {};
Object.extend(Webdisk.reg_class.prototype,   Object.extend(new   AjaxPro.AjaxClass(),   {
check:   function(username)   {
return   this.invoke( "check ",   { "username ":username},   this.check.getArguments().slice(1));
},
RegUser:   function(team,   username,   password,   uquestion,   uanswer,   email,   sex,   url,   qq,   msn,   realname,   phone,   address,   company,   bm,   recommend,   tjuser,   ValidateCode,   curr)   {
return   this.invoke( "RegUser ",   { "team ":team,   "username ":username,   "password ":password,   "uquestion ":uquestion,   "uanswer ":uanswer,   "email ":email,   "sex ":sex,   "url ":url,   "qq ":qq,   "msn ":msn,   "realname ":realname,   "phone ":phone,   "address ":address,   "company ":company,   "bm ":bm,   "recommend ":recommend,   "tjuser ":tjuser,   "ValidateCode ":ValidateCode,   "curr ":curr},   this.RegUser.getArguments().slice(19));
},
url:   '/ajaxpro/Webdisk.reg,Webdisk.ashx '
}));
Webdisk.reg   =   new   Webdisk.reg_class();

-------------
其中的   return   this.invoke( "check ",   ....   是什么意思?     是调用服务器上的check方法吗???

------解决方案--------------------
又一个被 prototype.js 毒害的同志。你的 Webdisk.reg_class 是从 AjaxPro.AjaxClass 类继承下来的,你自己去这个脚本文件里看吧!