摘要: 异步操作 fs文件(fs是node下的一个模块,可以对磁盘进行修改) require('fs').readFile('./index.html',(err,data)=>{}) 数据库操作 Ajax $.get('/server',(data)=>{}) 定时器 setTimeout(()=>{}, 阅读全文
posted @ 2022-01-21 19:15 SmallCity 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 下载jquery(已经含有node) 创建页面,打开文件夹终端 输入npm install jquery 就会在目录下创建node_modules(依赖包) 在里面会存在jquery与其他依赖包 再文件中引入(这里根据自己的文件地址) <script src="node_modules\jquery 阅读全文
posted @ 2022-01-21 19:14 SmallCity 阅读(32) 评论(0) 推荐(0) 编辑