function get(params) { $.ajax({ type: 'GET', data: params.data, url: 'http://127.0.0.1:9090'+params.url, success: function(res) { if(res.resultcode == "200") { params.callback(res.result) } else { YDUI.dialog.toast('请求失败', 'error', 1000); } }, error: function(err) {} }) }