js 成员检查方式in、indexOf、includes、inArray. ... 同indexOf一样,includes仅能用于字符串和数组. console.log(list.includes('dog')); ...
確定! 回上一頁