var person = { name:"Nicholas"};var people = [{ name:"Nicholas"}];var morePeople = [person];alert(people.indexOf(person)); //-1alert(morePeople.indexOf(person)); //0为什么这两种方式返回的值不一样?第一种会找不到?
wy57
_Exception
相关分类