实用的一行代码Javascript

获取浏览器Cookie的值通过document.cookie 来查找cookie值const cookie = name => `; ${document.cookie}`.split(`; ${name}=`).pop().split(';').shift(); cookie('_ga');颜色RGB转十六进制const rgbToHex [...]

node-sass 编译报错问题的解决

registry=https://registry.npmmirror.comsass_binary_site=https://npmmirror.com/mirrors/node-sass/phantomjs_cdnurl=https://npmmirror.com/mirrors/phantomjs/electron_mirror=https:[...]

cleanMyMac 文件已损坏的解决办法

终端: sudo xattr -r -d com.apple.quarantine 应用程序图标拖动至此

Chrome 弹出 调试无限循环问题

(function anonymous() {debugger})一步步debugger,发现是chrome 插件 PositiveAnalyzer 广告病毒引起解决方案:SpyHunter的软件清理干净吧。别无他法。手动清除太慢。

前端常用部署命令

sudo 或者 su 管理员权限cd /usr/local/nginx 进入nginx目录scp file.tar.gz -P 22 root@192.168.0.2:/usr/local/nginx/html 上传本地file.tar.gz文件到目标机器目录下。tar -zxvf file.tar.gz 解压文件