摘要: 1. objects定义 const myObj = { myName: "yuxian", age: 21, } console.log(myObj); 2.Objects操作函数 2.1 直接取出元素 const myObj = { myName: "yuxian", age: 21, } co 阅读全文
posted @ 2022-05-31 06:44 (⊃・ᴥ・)つ 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 1.数组定义的两种方式 1.1 直接定义 const arr1 = ['yu', 'xian', 'cool']; console.log(arr1); 1.2 Array定义 const arr2 = new Array('really', 'nice'); console.log(arr2); 阅读全文
posted @ 2022-05-31 01:36 (⊃・ᴥ・)つ 阅读(32) 评论(0) 推荐(0) 编辑