console.log(d.toString()); //Prints nothing since there are no elements in the array
console.log(Object.prototype.toString.call当我在第一个console.log打印对象上面运行代码时,这是预期的,因为数组是一个对象,第二个console.log打印对象数组。我对Object.prototype.toString.call(d)是如何工作的感到
我试图重写对象的默认toString方法,下面是代码和问题: this.code = 0;//later on I will set thesethis.name = ""; return this.name + "\t"+ this.code +" \t"+this.anotherFunction();
console.l