代码改变世界

Object.prototype.toString()

2012-08-14 19:18  hongjiumu  阅读(201)  评论(0编辑  收藏  举报

Transferred From :http://stackoverflow.com/questions/3250379/what-is-the-call-function-doing-in-this-javascript-statement/3250415#3250415

The call method sets the this value of the invoked function to the object passed as first  argument.

 

All native object in Javascript contain an internal property called [[Class]] .The property contains a string value that represents the specification defined classification of an object.