在下面的例子中:varperson={toLocaleString:function(){return"Nikolaos";},toString:function(){return"Nicholas";}};varperson2={toLocaleString:function(){return"Grigorios";},toString:function(){return"Greg";}};varpeople=[person,person2];alert(people);toLocaleString()方法在toString()方法之前,为什么弹出的结果是:Nicholas,Greg请各位老师指点,多谢!
添加回答
举报
0/150
提交
取消