1. <script>
    2. //indexOf 查询数组某个值的下标
    3. var arr=[1,2,3,4,5];
    4. console.log(arr.indexOf(4)); //结果:3
    5. </script>