水木社区手机版
首页
|版面-Web开发(WebDev)|
新版wap站已上线
返回
1/1
|
转到
主题:能不能拦截属性的调用?
楼主
|
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
1/1
|
转到
选择讨论区
首页
|
分区
|
热推
BYR-Team
©
2010.
KBS Dev-Team
©
2011
登录完整版