obj.func 为 obj 重新赋了个对象 {t:2},所以 alert 显示 2;而第二个 obj.func() 会出错,因为 {t:2} 没有这个方法。
相关阅读
创建于2005年 渝ICP备05010272号-1
电邮:cftea@126.com