摘要: //什么是:数组中的元素又引用了另一个子数组 //when: 1.保存横行竖列的二维数组结构; 2.对一个组数组进行细致分类时 //创建 var arr = [];//不知道子数组的内容 arr[0] = ['鲍鱼','花甲','海胆','大虾']; arr[1] = ['牛肉','鸡肉','鸭肉' 阅读全文
posted @ 2019-07-31 18:09 矜鸾 阅读(86) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>one</title></head><body> <button onclick="one()">最大最小</button></br> <button onclic 阅读全文
posted @ 2019-07-31 14:29 矜鸾 阅读(298) 评论(0) 推荐(0) 编辑
摘要: // 转字符串 // 1.String(arr) : 将数组中每个元素都转化为字符串,再用逗号连接 var provs = ["台湾省","北京市",'湖北省','重庆市','天津市']; console.log(String(provs)); // 拼接:将其他元素或者另一个数组,拼接到当前数组结 阅读全文
posted @ 2019-07-31 14:28 矜鸾 阅读(64) 评论(0) 推荐(0) 编辑