摘要: 一、node 导出:module.export = {} exports 导入:var 名称 = require('模块标识符') 二、ES6 导出:export default 和 export 导入:import 模块名称 from ‘模块标识符’ import '表示路径' 三、export 阅读全文
posted @ 2019-10-21 09:41 1220x 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 一、安装vue 二、使用,运行 运行之后有报错: 当前使用的包是runtime-only的包,并不是最全的包,在网页中使用script导入的vue包功能最全,这里的vue功能不全,是严格版的 查找 : node_modules vue -- package.json main 属性:"main": 阅读全文
posted @ 2019-10-20 21:44 1220x 阅读(2466) 评论(0) 推荐(0) 编辑
摘要: 一、新建项目 二、包管理管理项目 { "name": "webpack", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified 阅读全文
posted @ 2019-10-20 21:03 1220x 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 为什么要关注内存: 1、防止页面占用内存过大,引起客户端卡顿,甚至无响应 2、Node使用的也是V8,内存对于后端服务的性能至关重要。因为服务的持久性,够短更容易造成内存溢出。 3、面试装逼神器(哈哈哈) v8引擎内存回收机制 一、v8引擎内存分配 分为:新生代内存空间,老生代内存空间 内存大小: 阅读全文
posted @ 2019-10-19 22:27 1220x 阅读(583) 评论(0) 推荐(0) 编辑