摘要: 借用图 个人理解mounted 的使用是网页加载的时候调用 methods里的函数 mounted:function(){ this.getReportInfor(this.$route.params.user) }, methods: { getReportInfor(params){ var t 阅读全文
posted @ 2018-03-08 15:54 loveAline 阅读(3377) 评论(0) 推荐(0) 编辑
摘要: let、const在任何情况下都优于var const一旦定义就不可改变 大部分情况下const的出场率比let高很多,所以一般建议默认使用const,除非一定要改变变量的值,再使用let const 常量let 变量,块作用域,不能重复声明覆盖var 变量,函数作用域,能重复声明覆盖 const: 阅读全文
posted @ 2018-03-08 14:43 loveAline 阅读(141) 评论(0) 推荐(0) 编辑
摘要: vue element-ui使用自定义正则表达式: 首先打印一下this.$refs[formName],检查是否拿到了正确的需要验证的form。其次在拿到了正确的form后,检查该form上添加的表单验证是否正确,需要注意的点有: el-form rules,model属性绑定,ref标识 el- 阅读全文
posted @ 2018-03-08 14:28 loveAline 阅读(3884) 评论(0) 推荐(0) 编辑