水木社区手机版
首页
|版面-Web开发(WebDev)|
新版wap站已上线
展开
|
楼主
|
同主题展开
|
返回
上一篇
|
下一篇
主题:能不能拦截属性的调用?
hgoldfish
|
2008-05-26 10:52:02
|
比如:
function MyClass(){}
MyClass.prototype.getAttribute=function(attr){
alert(attr);
return null;
}
var o=new MyClass;
o.value;
调用o.value的时候希望先调用getAttribute函数
--
FROM 59.57.250.122
上一篇
|
下一篇
选择讨论区
首页
|
分区
|
热推
BYR-Team
©
2010.
KBS Dev-Team
©
2011
登录完整版