data:{ sign:{}}methods:{ signTp(){ let sign ={ studentId:this.sign.studentID, course_id:this.sign.course_id }; let _this = this; _this.loading('show'); $.fn.ajax({ type: 'POST', url: 'http://t.elite.gaodun.com/wap/training/applyManage', dataType: 'json', cache:false, data:sign }).then((data)=> { if(data.status === 0){ console.log(lol) } }).catch(()=> { _this.broadcast(data.Message); }).then(()=> { this.loading('hide'); }).catch(()=> { console.log('error'); }) }}還有,開發說sId和cId用數組發,status單獨發是什么意思?
Vue初學,POST跨域問題怎么解決?
收到一只叮咚
2018-09-04 09:09:11