以下示例說明了JavaScript中的Array includes()方法:. 範例1:在此示例中,該方法將在該數組中搜索元素2。 Input:[1, 2, 3, 4, 5].includes(2); Output:true
確定! 回上一頁