首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

js中的invoke 疑问?该如何处理

2012-02-06 
js中的invoke 疑问??if(typeofWebdiskundefined )Webdisk{}if(typeofWebdisk.regundefined )Web

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 类继承下来的,你自己去这个脚本文件里看吧!

热点排行