mounted:function () {
var that = this;
$.ajax({
type:"GET",
url:"/trade_data",
data:{type:$_GET['type'],ext:$_GET['ext']},
dataType:"json",
success: function(result) {
that.info_in=result.in;
that.info_out=result.out;
}
})
}
怎么讓它每5秒調用一次
vue.js 實時調用 mounted
慕俠2389804
2018-10-09 16:29:51