上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 35 下一页
摘要: 阅读全文
posted @ 2020-06-04 17:58 EricBlog 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-06-04 17:32 EricBlog 阅读(56) 评论(0) 推荐(0) 编辑
摘要: // 冒泡排序 var arr = [5, 4, 3, 2, 1]; var temp; for (i = 0; i < arr.length - 1; i++) { for (j = 0; j < arr.length - i - 1; j++) if (arr[j] 阅读全文
posted @ 2020-06-04 15:19 EricBlog 阅读(136) 评论(0) 推荐(0) 编辑
摘要: arr.length; 获取数组长度 阅读全文
posted @ 2020-06-04 15:17 EricBlog 阅读(59) 评论(0) 推荐(0) 编辑
摘要: // console.log(123 && 456); // 456 // console.log(false && 456); // false // // console.log(123 && 456 && 789); // 789 // console.log(123 && 456 && 阅读全文
posted @ 2020-06-04 09:11 EricBlog 阅读(147) 评论(0) 推荐(0) 编辑
摘要: // 1 把数字转换成字符串类型 toString() // var num = 10; // var str = num.toString(); // console.log(str); // console.log(typeof str); // // 2 Sting() // console. 阅读全文
posted @ 2020-06-03 20:16 EricBlog 阅读(168) 评论(0) 推荐(0) 编辑
摘要: // var num = 10; // console.log(typeof num); // number // var str = 'eric'; // console.log(typeof str); //string // var flag = true; // console.log(ty 阅读全文
posted @ 2020-06-03 19:37 EricBlog 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-06-03 18:19 EricBlog 阅读(78) 评论(0) 推荐(0) 编辑
摘要: // 1 检测获取字符串长度 length var str = 'my name is eric'; console.log(str.length); // 18 包含空格 // 2 字符串的拼接 + (只要有字符串 和其他类型的拼接 最终的结果是字符串类型) console.log('沙漠' +  阅读全文
posted @ 2020-06-03 17:48 EricBlog 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-06-03 17:16 EricBlog 阅读(87) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 35 下一页