摘要:
https://fusion.alibaba-inc.com/ 阅读全文
摘要:
这不知道是个什么神仙网站,解决办法写的这么清楚,页面有这么让人舒服 https://lhajh.github.io/css/chrome/2018/04/17/The-chrome-browser-form-automatically-fills-in-the-default-style-autof 阅读全文
摘要:
官网: https://www.tailwindcss.cn/ 阅读全文
摘要:
当我们使用readFile()这种api,它第一个参数是报的错误,当使用async、await把它改写成同步,我们可以使用try { }catch{ }解决。 阅读全文
摘要:
1.README.md文件 关于项目的介绍和使用方法。 2. .gitignore文件 上传项目时不需要传的文件,最常用的就是“node_modules/",如下: 详细的介绍可以去git官网上看:https://git-scm.com/docs/gitignore 规则总结如下: 匹配模式前 / 阅读全文
摘要:
1.github登陆之后,创建仓库 2.填写项目基本信息 3.就这么简单创建好啦 4.此时点击这里就可以克隆地址了 阅读全文
摘要:
1.node提供一个watch这个API,可以监视文件或文件夹的变化,当发生改变时,做出某些操作。(当做代码本地构建时,经常使用) const fs = require('fs'); fs.watch('./',{ recursive:true //是否连同其子文件一起监视 },(eventType 阅读全文
摘要:
1. fs.stat()可以获取文件的信息,用法如下: const fs = require('fs'); fs.stat('./book.js',(err,stats)=>{ if(err) throw err; // 可以利用此处判断文件是否存在,不存在会报err。 console.log(st 阅读全文