1、新建一个html文件,命名为test.html,用于讲解js如何查找数组下标。
3、在script标签内,使用for in遍历数组,其中,key为数组下标。
5、在浏览器打开test.html,查看结果。