返回数组是否包含某个元素
var array1 = [1, 2, 3]; console.log(array1.includes(2)); // expected output: true
原文地址:https://www.cnblogs.com/mlh1421/p/10008831.html
时间: 2024-11-13 09:31:57
var array1 = [1, 2, 3]; console.log(array1.includes(2)); // expected output: true
原文地址:https://www.cnblogs.com/mlh1421/p/10008831.html