上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
  2023年1月5日
摘要: 1.beforeCreate: 无法通过vm,访问data,和methods。 2.created: 可以通vm,访问data和methods的方法。 3.beforeMount : (1).生成未经vue编译的DOM结构, (2).所有对DOM的操作,最终不生效。 4.mounted: (1).生 阅读全文
posted @ 2023-01-05 09:57 Steven_YF 阅读(17) 评论(0) 推荐(0) 编辑
  2022年3月9日
摘要: input[type=text]:focus { outline: none; border-color: rgba(82, 168, 236, 0.8); box-shadow:inset 0 1px 1px 0px skyblue,0 0 8px skyblue; } 阅读全文
posted @ 2022-03-09 16:16 Steven_YF 阅读(48) 评论(0) 推荐(0) 编辑
摘要: inset | offset-x | offset-y | blur-radius | spread-radius | color 阴影在边框内 x轴 y轴 模糊半径 扩散半径 阴影颜色 inset: 默认阴影在边框外。使用 inset 后,阴影在边框内 offset-x:水平偏移量:(如果是负值则 阅读全文
posted @ 2022-03-09 16:03 Steven_YF 阅读(23) 评论(0) 推荐(0) 编辑
  2022年2月11日
摘要: 把VScode插件提示abc的提示给移到最后 解决方法 打开设置,在搜索中输入editor.snippetSuggestions,然后将选项改为top,就可以解决了 top:就是将你插件提示放到最上面,abc提示的放在最下面; bottom:就是abc提示在最上面,插件提示在abc提示下; inli 阅读全文
posted @ 2022-02-11 09:58 Steven_YF 阅读(429) 评论(0) 推荐(0) 编辑
摘要: "Print to console": { "prefix": "log", "body": [ "console.log('$1');", "$2" ], "description": "Log output to console" } 阅读全文
posted @ 2022-02-11 09:47 Steven_YF 阅读(169) 评论(0) 推荐(0) 编辑
  2022年2月8日
摘要: let arr = ['刘德华','张学友','黎明','郭富城']; let arr2 = arr; arr = []; // 第一种方式 :这个是开辟一段新的空数组内存地址 arr.length = 0; // 第二种方式 :这个是将arr的内存地址清空 arr.splice(0); // 第三 阅读全文
posted @ 2022-02-08 11:42 Steven_YF 阅读(390) 评论(0) 推荐(0) 编辑
摘要: let arr = ['a','b','c','d']; function move(arrs,from,to) { let arr1 = [...arrs]; let item = arr1.splice(from,1); arr1.splice(to,0,...item); return arr 阅读全文
posted @ 2022-02-08 11:27 Steven_YF 阅读(33) 评论(0) 推荐(0) 编辑
  2022年1月14日
摘要: JS有多少种数据类型? 7种种基本数据类型:Number String Boolean Undefined Null Symbol Bigint; 1种引用数据类型Object:其中包括(Object Function Array RegExp Date Math) ; 7种种基本数据类型:Numb 阅读全文
posted @ 2022-01-14 09:00 Steven_YF 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 函数内this的指向问题 1 . 非严格模式下,this指向window function sum(a , b) { //非严格模式下,this指向window console.log(this); return a + b } sum(); 2. 严格模式下,this指向undefined fun 阅读全文
posted @ 2022-01-14 08:31 Steven_YF 阅读(27) 评论(0) 推荐(0) 编辑
  2022年1月3日
摘要: new Array(3) //表示创建length=3 的空字符数组 Array.of(3) //表示创建length = 1 的数组 let arr1 = new Array(3); let arr2 = Array.of(3); console.log(arr1.length); //3 con 阅读全文
posted @ 2022-01-03 10:24 Steven_YF 阅读(177) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页