摘要:
function fn() { console.log(typeof this == 'string');}fn.call('str'); // consoler: true还是false?false!why?function fn() { console.log(this);}fn.call('str'); // String{0: "s", 1: "t", 2: "r"}this是一个字符串包装对象。 阅读全文
posted @ 2014-02-09 13:07
MyNameIsJim
阅读(112)
评论(0)
推荐(0)

浙公网安备 33010602011771号