上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 54 下一页
摘要: 一、VS code中断点调试Vue CLI 4项目 1、Debugger for Chrome插件 2、配置vue.config.js文件(如果没有,在根目录下新增一个) module.exports = { configureWebpack: { devtool: 'source-map' } } 阅读全文
posted @ 2020-02-14 15:08 反骨少年 阅读(1779) 评论(0) 推荐(0)
摘要: 一、遇到的问题 如图 如图 这个值就是拿不到 代码如下: /** * Created by superman on 17/2/16. * http配置 */ import { Toast } from 'vant'; import axios from 'axios' import store fr 阅读全文
posted @ 2020-02-13 14:44 反骨少年 阅读(325) 评论(0) 推荐(0)
摘要: 一、Vuex演示(mutations同步方法) 通过const state定义变量方式,在new Vuex.Store是引用的写法 1、main.js //sotre中的变量为所有组件共享变量,即全局变量 import Vue from 'vue';//引用vue import Vuex from 阅读全文
posted @ 2020-02-12 00:35 反骨少年 阅读(248) 评论(0) 推荐(0)
摘要: 一、底部菜单组件封装使用 1、components目录下新建tabbar.vue文件夹代码如下: 代码如下: <template> <van-tabbar v-model="active" inactive-color="#777777" active-color="#000000"> <van-t 阅读全文
posted @ 2020-02-11 19:55 反骨少年 阅读(2569) 评论(1) 推荐(0)
摘要: 1、开机启动慢 2、调整桌面文件文档默认地址 阅读全文
posted @ 2020-02-11 16:09 反骨少年 阅读(245) 评论(0) 推荐(0)
摘要: 简单例子 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http- 阅读全文
posted @ 2020-02-10 21:28 反骨少年 阅读(4021) 评论(0) 推荐(0)
摘要: 一、安装Vant框架 1、如图 2、安装 二、 按钮的使用 1、更改全局样式和使用 代码如下: import 'vant/lib/index.css'; import {Button} from 'vant'; Vue.use(Button) //在需要的页面中就可以直接使用,页面当中也无需再次引入 阅读全文
posted @ 2020-02-10 18:45 反骨少年 阅读(2935) 评论(0) 推荐(1)
摘要: 一、Vant起步 1、基于Vue Cli基础的环境 2、创建项目 vue create blog.web ( >名字中不能有大写也不能用驼峰命名) 如图: 3、项目查看 4、安装路由 4.1进入 项目 cd blog.web 并运行 npm install vue-router 如图: 5、使用路由 阅读全文
posted @ 2020-02-09 19:04 反骨少年 阅读(1291) 评论(0) 推荐(0)
摘要: 一、插件 JavaScript Booster 二、Vetur —— 语法高亮、智能感知、Emmet等包含格式化功能, Alt+Shift+F (格式化全文),Ctrl+K Ctrl+F(格式化选中代码,两个Ctrl需要同时按着) 效果 阅读全文
posted @ 2020-02-09 17:15 反骨少年 阅读(785) 评论(0) 推荐(0)
摘要: 一、 可以用于方法 返回值 阅读全文
posted @ 2020-02-06 15:36 反骨少年 阅读(114) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 54 下一页