get
downloadExcel() {this.axios({url: \'/API/YJDD/excel\',method: \'get\',Params: this.params,File//可以下载文件,无File,就是普通的axios})},
post
save(name) {//保存数据let _this = this;this.axios({url: \'/API/YJDD/Save\',method: \'post\',data: _this.saveData}).then(res => {if (res.status == 200) {this.$Message.success(\"保存成功!\");this.$parent.ifNew = false;//新增页面关闭this.$parent.loadData();//重新加载数据}}).catch(err => {this.$Message.error(\"保存失败!\");})},
别人家的ajax
ajax