摘要: 当被监听的数据发生变化是,函数被执行 created() { this.$watch("Withdrawals", function (newValue, oldValue) { if(this.Withdrawals==false){ console.log("123") } }) } data( 阅读全文
posted @ 2017-12-11 16:24 learnoff 阅读(16028) 评论(3) 推荐(0) 编辑
摘要: @keyup.enter.native="entrance()" 键盘事件是 原生 事件 需要加 native 修饰 阅读全文
posted @ 2017-12-11 16:20 learnoff 阅读(3410) 评论(0) 推荐(0) 编辑
摘要: 参数以对象的方式传给后台 参数以拼接的方式传给后台 参数请求需要请求头 阅读全文
posted @ 2017-12-11 16:19 learnoff 阅读(350) 评论(0) 推荐(0) 编辑
摘要: certificate(e) { let file = e.target.files[0]; let param = new FormData(); //创建form对象 param.append('file', file, file.name); //通过append向form对象添加数据 let config = { headers: {... 阅读全文
posted @ 2017-12-11 16:14 learnoff 阅读(269) 评论(0) 推荐(0) 编辑