数组里的功能和用途解释
摘要:1. var arr = [ ]; 数组:[ ] 空数组 console.log为Array(0) 功能:定义空数组用来接收的 2. var str = ’ ’ 空字符串 功能:定义空字符串用来接收的 3. arr[arr.length] = ‘在最后数组添加’ arr.push(‘添加’) 常用
阅读全文
posted @ 2019-07-22 12:11
posted @ 2019-07-22 12:11