摘要:
var arr= [1,2,3,4]console.log(typeof(arr))console.log(arr[0])for (var i = 0; i < arr.length;i++){console.log("arr[%d] = %d",i,arr[i])}//数值查找数组的位置var res = arr.indexof(4)============数组创建===============... 阅读全文
摘要:
var num = 10function func() { var num1 =20 num =20 console.log("num1 ="+ num1)}func()console.log ("num = "+ num) function func (){ var num = 20 p =30 阅读全文