zoukankan      html  css  js  c++  java
  • vue学习笔记01

    vue扩展插件

    (1) vue-cli 脚手架

    (2) vue-resource(axios) : ajax请求

    (3) vue-router 路由

    (4) vuex 状态管理

    (5) vue-lazyload  图片懒加载

    (6) vue-scroller 页面光滑动相关

    (7) mint-ui : 基于vue的ui组件库(移动端)

    (8) element-ui : 基于vue的ui组件库(pc端)

    <div id="test">
        <input type="text" v-model="msg">
        <p>Hello {{msg}}</p>
    </div>
    <script type="text/javascript" src="../lib/vue.min.js"></script>
    <script>
        var v = new Vue({
            el: "#test",
            data: {
                msg: "amdin"
            }
        });
    </script>

    使用vue-cli脚手架创建项目

    1. 安装git

    2. 安装nodejs

    3. 在nodejs的根目录下新建两个文件夹node-cache 和 node-global 

      D:workasic odejs ode-cache

      D:workasic odejs ode-global

    4. 配置环境变量

        node -v 和 npm -v 

    5.对npm进行配置,在cmd中分别输入

      npm config set prefix "D:workasic odejs ode-global"
      npm config set cache "D:workasic odejs ode-cache"

    6.设置淘宝镜像

      npm config set registry http://registry.cnpmjs.org

    7.安装vue-cli

      npm install -g vue-cli

    8. 在cmd命令行中输入 vue ,显示如下信息,说明vue-cli安装成功


    C:Userszhengqinfeng>vue
    Usage: vue <command> [options]

    Options:
    -V, --version output the version number
    -h, --help output usage information

    Commands:
    init generate a new project from a template
    list list available official templates
    build prototype a new project
    create (for v3 warning only)
    help [cmd] display help for [cmd]

  • 相关阅读:
    自定义input file样式
    input text 不显示输入的历史记录
    白话 P-value
    R博客
    安装NXNET
    形象的解释神经网络激活函数的作用是什么?
    嵌入式选择与L1正则化
    “梯度下降法”理解
    控制台乱码
    R语言快捷键
  • 原文地址:https://www.cnblogs.com/z-qinfeng/p/12169212.html
Copyright © 2011-2022 走看看