zoukankan      html  css  js  c++  java
  • vue小结2018-11-12

    1.

    Template下只能有一个总元素

     

    <template>

    <router-view/>

    </template>

    是对的

     

    <template>

    <div>111</div>

    <router-view/>

    </template>

    是不对的,只能有一个总元素,可以用div包起来

     

    2.

    build下的webpack.base.conf.js

     

    resolve: {

        extensions: ['.js', '.vue', '.json'],

        alias: {

          'vue$': 'vue/dist/vue.esm.js',

          '@': resolve('src'),

          'components': resolve('src/components'),

        }

      },

    这里写components的路径

  • 相关阅读:
    python之切片
    python之递归函数
    python之函数的参数
    python之定义函数
    python函数之调用函数
    小地图
    利用脚本对游戏对象进行操作
    Unity中www的基本应用
    U3D脚本开发基础
    U3D游戏开发基础
  • 原文地址:https://www.cnblogs.com/luziluck/p/10002653.html
Copyright © 2011-2022 走看看