RT在书上看见这个例子varperson={name:"Nicholas"};varpeople=[{name:"Nicholas"}];varmorepeople=[person];alert(people.indexOf(person));//-1alert(morepeople.indexOf(person));//0有点不明白为何alert(people.indexOf(person));会得到-1
在书上看见这个例子varperson={name:"Nicholas"};varpeople=[{name:"Nicholas"}];varmorepeople=[person];alert(people.indexOf(person));//-1alert(morepeople.indexOf(person));//0有点不明白为何alert(people.indexOf(person));会得到-1
varperson={name:"Nicholas"};varpeople=[{name:"Nicholas"}];varmorepeople=[person];alert(people.indexOf(person));//-1alert(morepeople.indexOf(person));//0有点不明白为何alert(people.indexOf(person));会得到-1
varpeople=[{name:"Nicholas"}];varmorepeople=[person];alert(people.indexOf(person));//-1alert(morepeople.indexOf(person));//0有点不明白为何alert(people.indexOf(person));会得到-1
varmorepeople=[person];alert(people.indexOf(person));//-1alert(morepeople.indexOf(person));//0有点不明白为何alert(people.indexOf(person));会得到-1
alert(people.indexOf(person));//-1alert(morepeople.indexOf(person));//0有点不明白为何alert(people.indexOf(person));会得到-1
alert(morepeople.indexOf(person));//0有点不明白为何alert(people.indexOf(person));会得到-1
有点不明白为何alert(people.indexOf(person));会得到-1
RISEBY
相关分类