美文网首页
Vue2.0 学习

Vue2.0 学习

作者: 玄武_925c | 来源:发表于2017-06-26 01:00 被阅读0次

Vue2.0 学习

eslintignore.js 里写规范配置:

module.exports= {

root:true,

parser:'babel-eslint',

parserOptions: {

sourceType:'module'

},

// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style

extends:'standard',

// required to lint *.vue files

plugins: [

'html'

],

// add your custom rules here

'rules': {

// allow paren-less arrow functions

'arrow-parens':0,

// allow async-await

'generator-star-spacing':0,

// allow debugger during development

'no-debugger':process.env.NODE_ENV==='production'?2:0,

'semi': ['error','always'],

'indent':0,

'space-before-function-paren':0

}

}

 -----------------------------------------------------------

在Vue文件里,写的时候要注意,components 前面没空格,后面才有空格: 

import header from '@/components/header/header.vue';

export default{

components: {

'v-header': header

}

};

相关文章

  • Vue2.0-Vue3.0语法差异性总结

    Vue2.0 Vue2.0实例 Vue2.0 组件 使用组件的细节 在 ttable > tbody > tr 使...

  • Vue2.0 学习

    Vue2.0 学习 eslintignore.js 里写规范配置: module.exports= { root:...

  • vue2.0学习

    事件深入 v-on v-on:click/mouseup... 简写: @click:"" (推荐) 事件对象 @...

  • vue2.0学习

    关于mvvm/mvc/mv*框架的理解:前端关于此类框架更加贴近于后端编程模式,使代码功能清晰,也更便于理解;此类...

  • vue(3) - 收藏集 - 掘金

    Vue2.0 Transition 常见用法全解惑 - 前端 - 掘金Vue2.0的过渡系统(transition...

  • Vue2.0的Diff算法

    原文:解析Vue2.0的Diff算法 Vue2.0加入了Virtual Dom,Vue的Diff位于patch.j...

  • Vue感悟

    学习完wepack之后,最近在学习vue2.0,每天几节课,让我收获很多,因为之前已经学习了vue1.0,所以学2...

  • vue2.0学习记录

    持续更新中 看了一段时间的视频,即便是大火的现在,讲vue的视频还是那么不尽如人意,还是按照文档学吧,顺序知乎和简...

  • vue2.0学习笔记

    过渡效果

  • Vue2.0敏捷学习及项目开发

    Vue2.0敏捷学习#### 摘要#### 在以前的项目中,主要使用各类UI框架配合jquery进行敏捷开发。经过...

网友评论

      本文标题:Vue2.0 学习

      本文链接:https://www.haomeiwen.com/subject/rduzottx.html