vardata=['peach','pear',55,'55','grape']; console.log(data.includes(55,-1)); 输出结果为
vardata=['peach','pear',55,'55','grape']; console.log(data.includes(55,-1)); 输出结果为
1
vardata=['peach','pear',55,'55','grape']; console.log(data.includes(55,-1)); 输出结果为