摘要: nodejs require用法 $ cat aa.js function aa(){ let a = 1 ; let b = 2; let c = a + b; alert(c); } exports.aa = aa; $ cat app.js let a = require('./aa.js') 阅读全文
posted @ 2020-09-28 23:00 方诚 阅读(747) 评论(0) 推荐(0) 编辑
摘要: Webpack入门教程 npm init -y cnpm install --save-dev webpack cnpm install --save-dev webpack-cli $ cat app.js alert(1); node_modules/.bin/webpack-cli app.j 阅读全文
posted @ 2020-09-28 22:15 方诚 阅读(144) 评论(0) 推荐(0) 编辑
摘要: nodejs学习 node.js简介 npm 常用命令 webpack打包 nodejs require用法 ES6 module export 语法 vue2手脚架 vue2.x入门学习-基础 vue中的export import hongyun-ui搭建记录 vue中引入d3 vue中引入css 阅读全文
posted @ 2020-09-28 21:35 方诚 阅读(156) 评论(0) 推荐(0) 编辑
摘要: npm 包安装 npm i module_name -S = > npm install module_name --save 写入到 dependencies 对象 npm i module_name -D => npm install module_name --save-dev 写入到 dev 阅读全文
posted @ 2020-09-28 13:43 方诚 阅读(118) 评论(0) 推荐(0) 编辑
摘要: vue3架构搭建 阅读全文
posted @ 2020-09-28 13:38 方诚 阅读(458) 评论(0) 推荐(0) 编辑