个人博客
-
从零开始搭建Vue工程
项目骨架 object --dist --src ----assets ------images ------styles ----index.js ----app.vue --webpack.config.js dist目录存放编译后的资源 src存放源码文件 运行命令 `np... -
vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.
原因 v15版的vue-loader配置需要加个VueLoaderPlugin  解决办法 在webpack配置文件添加 const VueLoad... -
手写Vue数据绑定
小试牛刀 我们先来看如下vue实例有什么属性 var vm = new Vue({ el:' app', data:{ name:'hello', sex:1 } }) console.log(vm);... -
Uncaught TypeError: Cannot assign to read only property 'exports' of object
今天在进行vue服务端渲染的时候,出现如下错误 Uncaught TypeError: Cannot assign to read only property 'exports' of object ' ' 查了资料 “在webpack打包的时候,可以在js文件中混用require和export。但是不... -
Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>'
3 -
Babel之babel-polyfill、babel-runtime、transform-runtime详解
引言 babel默认只转换新的 JavaScript 语法,比如箭头函数、扩展运算(spread)。 不转换新的 API,例如Iterator、Generator、Set、Maps、Proxy、Reflect、Symbol、Promise 等全局对象,以及一些定义在全局对象上的... -
Failed to mount component: template or render function not defined.
今天在处理路由懒加载时出现如下报错  究其原因是我的routes文件语法有问题 错误的语法... -
render函数
import Vue from 'vue' const component = { name: 'comp', template: ` `, data () { return { style: { width: '200px', height: '200px', border:... -
Vue n开发技巧一
本文记录vue在实际开发应用中的技巧 方法调用的方式实现一个全局通用性组件 将组件以方法调用的方式创建,这样不仅在页面这可以使用,在方法中也可以调用。 [【传送门】](https://www.zihanzy.com/articles/21... -
vue 实现tab切换
我们要实现如下效果  单看效果似乎很简单,实则不然 首先我们的tab一般是这样的结构...