01 2021 档案

摘要:字符串截取方法 1 let hd = 'abcdefg' 2 3 hd.slice(1) //bcdefg 4 hd.substring(1) //bcdefg 5 hd.substr(1) //bcdefg 6 7 8 hd.slice(1,3) //bc 9 hd.substring(1,3) 阅读全文
posted @ 2021-01-18 17:58 人才不才 阅读(131) 评论(0) 推荐(0)
摘要:1. ++n 先n=n+1 ; n++ 最后n+1 2. && ‘并且’ 两个都为真为true;(第一个为false,第二个不判断) || ‘或’ 有一个为真就是true ;(第一个为true,第二个不判断) 3.switch let name = 'a' switch(name) { case " 阅读全文
posted @ 2021-01-09 15:03 人才不才 阅读(82) 评论(0) 推荐(0)
摘要:父级 //改变盒子模型display:flex //排列方向左右row;上下column; flex-direction:row、column、row-reverse、column-reverse //是否换行显示默认:nowrap flex-warp:nowrap、wrap、wrap-revers 阅读全文
posted @ 2021-01-08 16:27 人才不才 阅读(104) 评论(0) 推荐(0)