
web
VUE2020
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
从零开始学Node.js(Node.js的模块机制)
Node.js的模块机制使用了Common.js作为规范。Node.js中我们通过module.exports、require来导出和导入一个模块。 模块的分类 系统模块 1、c/c++模块,也叫做built-in内建模块,一般用于 native 模块调用,在 require 出去 2、native模块(核心模块),node.js的内置模块,直接require即可,无需下载 文件模块 我们自己定义的文件模块,例如: const book = require(./book) 复制代码 第三方模块 我们通过np原创 2020-09-04 15:00:17 · 205 阅读 · 0 评论 -
Vue Single File Components or Vue单文件组件的改进你喜欢吗?
尤雨溪在今天上午发布了一篇关于提升单文件组件体验的RFCs 记录下我最喜欢的一个改变。 动机与目的: Currently in SFCs you have to import a component and then pass it to the export default { components: { … } } hash, which leads to a lot of redundancy: for a single component we are repeating its name 3 ti原创 2020-08-28 16:48:45 · 795 阅读 · 1 评论