ถ้าไม่รวมถึงการอยู่ในตารางคู่ลำดับ

รหัสตัวอย่าง

16
0

โปรดตรวจสอบว่าอาเรย์ไม่มีค่าจาวาสคริปต์

var fruits = ["Banana", "Orange", "Apple", "Mango"];

var n = fruits.includes("Mango"); // true

var n = fruits.includes("Django"); // false
0
0

อาเรย์เกี่ยวกับหรือเงื่อนไข

if (['slug-title-one','slug-title-13'].some(slug => item.slug.includes(slug))) {
     // checks for and displays if either

}

ในภาษาอื่นๆ

หน้านี้อยู่ในภาษาอื่นๆ

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................