例:
var f = document.write //then f('test');
它与警报一起工作.为什么不用document.write?
f = document.write.bind(document) f("hello")
上面的链接还包含不支持JS 1.8.5的浏览器的仿真代码.