this的困惑??????????????????????????????????? http://expert.csdn.net/Expert/TopicView1.asp?id=1629593 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 var o=Object();o.f = f;function f(){this.x = 0;}f(); //this == windowo.f();// this == o;var another = [];f.call(another);// this == another;f.apply(another);// this == another;btn.onclick = f; //this == window;btn.attachEvent("onclick", f); //this == event.srcElementfunction btn::onclick();// this == btn{this.x =0;}大概就这么多用法了,欢迎大家补充。 Extjs 触发事件问题 js中求工作日 求一个可以自定义黑名单或者白名单的表单输入JS验证函数! 我要如何准备无误地用JAVASCRIPT把文本框里的值传到后台去,效果要跟POST一样 中文大写 转 阿拉伯,帮帮忙。。。 缩略图怪问题还是要请高手50分 如何用js脚本提交一个url 这段怎么写〉?劳驾大家都看看! 求自动定位文字代码 如何实现如图所示效果 关于this 的疑惑! 請教一個HTML編輯器的問題
o.f = f;
function f()
{
this.x = 0;
}f(); //this == window
o.f();// this == o;
var another = [];
f.call(another);// this == another;
f.apply(another);// this == another;btn.onclick = f; //this == window;
btn.attachEvent("onclick", f); //this == event.srcElement
function btn::onclick();// this == btn
{
this.x =0;
}
大概就这么多用法了,欢迎大家补充。