08 2020 档案

摘要:https://macdrop.net/ https://nmac.to/ .... http://www.ruanjianhu.com/ 阅读全文
posted @ 2020-08-27 18:29 hh9515 阅读(1420) 评论(0) 推荐(0)
摘要:当我们将null/undefined作为值传进去的时候,得到的是window,当前js运行环境的全局对象。 这其实在es5中就有解释的:传入null/undefined的时候将执行js全局对象浏览器中是window,其他环境是global。 阅读全文
posted @ 2020-08-27 11:41 hh9515 阅读(381) 评论(0) 推荐(0)
摘要:使用JS对字符串进行排序 注意,在这个数组里,先将数字转为字符串(只有字符串才有localCompare这个方法) localeCompare 只对比传入字符串的第0个元素(如果第0个元素不同) // In implementations which ignore the locales and o 阅读全文
posted @ 2020-08-17 21:33 hh9515 阅读(1207) 评论(0) 推荐(0)
摘要:1.暴力的隐藏x轴和y轴的滚动条 xxx::-webkit-scrollbar { height: 0 !important;width:0px !important; } 2. <div class='parent'> <div class='child>xxx</div> </div> .par 阅读全文
posted @ 2020-08-16 19:32 hh9515 阅读(2269) 评论(0) 推荐(0)
摘要:Chrome devtool快捷键 https://developers.google.com/web/tools/chrome-devtools/shortcuts?utm_source=devtools 阅读全文
posted @ 2020-08-12 01:20 hh9515 阅读(173) 评论(0) 推荐(0)
摘要:执行npm脚本这个功能很好用,但是需要用鼠标去点,下面给一个用键盘控制的方法, 安装扩展: https://marketplace.visualstudio.com/items?itemName=eg2.vscode-npm-script 在键盘快捷键里设置这个扩展的快捷键 然后就可以使用了 阅读全文
posted @ 2020-08-11 11:20 hh9515 阅读(4779) 评论(0) 推荐(0)
摘要:vscode左下角有个很方便的选择分支的功能,但是需要用鼠标手动去点击, 下面给出一种可以直接使用键盘操作的方式 file - preferences - keyboard shortcuts - keybindings.json: { "key": "shift+cmd+c", "command" 阅读全文
posted @ 2020-08-06 17:50 hh9515 阅读(846) 评论(0) 推荐(0)