let array = ['JS', 'ECMA', 'TC39']; let searchElement = 'ECMA'; console.log(array.indexOf(searchElement) !== -1); // true console.log(array.
確定! 回上一頁