返回数组是否包含某个元素
var array1 = [1, 2, 3];console.log(array1.includes(2)); // expected output: true
本文共 148 字,大约阅读时间需要 1 分钟。
var array1 = [1, 2, 3];console.log(array1.includes(2)); // expected output: true
转载于:https://www.cnblogs.com/mlh1421/p/10008831.html