【发布时间】:2012-11-05 12:26:43
【问题描述】:
可能重复:
Javascript: Determine whether an array contains a value
var thelist = new Array();
function addlist(){
thelist.push(documentgetElementById('data').innerHTML);
}
如何检查我推送的数据是否已经存在于数组thelist中?
【问题讨论】:
标签: javascript