摘要: vue-cli + vue2.0 + vuex + vue-router + axios + element-ui 1. vue-cli:(脚手架)是vue官方提供的快速搭建项目的工具,react,anguer也有类似的工具,具体安装可以参考(https://www.npmjs.com/packag 阅读全文
posted @ 2020-04-21 17:50 qwe乔 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 转:https://www.jianshu.com/p/d973f78f3e65 阅读全文
posted @ 2020-04-21 17:45 qwe乔 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 假设vue实例中data有msg属性,我们就可以同this.msg来获取该值。 普通函数的this指向vue实例,可以获取到对应的值 箭头函数的this指向全局window,不能获取到该值 <!DOCTYPE html> <html lang="en"> <head> <meta charset=" 阅读全文
posted @ 2020-04-21 17:25 qwe乔 阅读(1184) 评论(0) 推荐(0) 编辑