x
 
<!DOCTYPE html>
<html>
<body>
<h1>JavaScript 数组</h1>
<p>includes() 方法确定数组是否包含指定的元素。</p>
<p id="demo"></p>
<script>
const fruits = ["Banana", "Orange", "Apple", "Mango"];
document.getElementById("demo").innerHTML = fruits.includes("Mango");
</script>
<p>Edge 13(及更早版本)不支持 includes() 方法。</p>
</body>
</html>