node·常用命令

node·常用命令

node 运行命令 node xx.jssxx.jss
npm run serve

Node:
npm init -y
npm install mysql
npm install express –save //项目下载入模块

◼️res.send() 参数为: a Buffer object / a String / an object / an Array
◼️ res.json() 参数为:任何JSON类型
◼️ res.end() 参数为: a Buffer object / a String
使用res.send,red.json,此时可以不写res.end

载入mysql 模块: npm i mysql
暴露js属性 export default { xxx }

331 Views
分享你的喜爱
linwute
linwute

我要像梦一样自由,像大地一样宽容;
在艰辛放逐的路上,点亮生命的光芒;
我要像梦一样自由,像天空一样坚强;
在曲折蜿蜒的路上,体验生命的意义;

留下评论

您的电子邮箱地址不会被公开。 必填项已用*标注