
node.js
云簪轻拨
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
node中fs库(文件读写)操作
http://nodejs.cn/api/fs.html#fs_fs_readfile_path_options_callback示例:读取本地JSON文件,按需重组数据后写入新的JSON文件//node中封装了fs库,可以用于本地静态文件的读写操作const fs = require('fs')//读取本地json文件fs.readFile('./data_json/goods.json','utf8',function(err,data){ //解析json l原创 2020-05-12 16:22:14 · 1663 阅读 · 0 评论 -
VUE-axios封装及使用
使用node.js作为服务器端提供的数据接口如下本地封装axios【main.js同级目录】import axios from 'axios';const Domain = "http://127.0.0.1:3000"; // 定义根域名axios.defaults.headers.post['Content-Type'] = 'application/x-www-for...原创 2019-08-29 23:38:05 · 408 阅读 · 0 评论 -
express开发后端,运行报错 DeprecationWarning: timers.unenroll() is deprecated. Please use clearTimeout
DeprecationWarning: timers.unenroll() is deprecated. Please use clearTimeout instead.nodejs 在运行时,报如上的警告,程序不影响执行,但是不清楚为什么有如些警告原因: nodejs 版本在10以上的,在连接mysql 数据库时,就会提示如上警告. 以上提示的只是警告,不影响程序运行.解决方案: ...转载 2019-09-02 22:49:01 · 7959 阅读 · 1 评论