简单教程
提交运行
代码编辑器:
<script> let site = ['twle', 'google', 'taobao']; document.write(site.includes('twle')); // true document.write("<br>"); document.write(site.includes('baidu')); // false </script>
运行结果: