//mui.plusReady(function() { queryList(); //}); function queryList() { // plus.nativeUI.showWaiting(); //拼请求内容 var params = {}; params.id = 0; params.pagesize = 60; //发送ajax请求 sendPost("patient/device/list", params, "json", "post", queryListFailed, queryListSuccesss); } function queryListFailed(res) { console.log(res.status); if (res && res.msg) { // plus.nativeUI.toast(res.msg); } else { // plus.nativeUI.toast("数据加载失败"); } // plus.nativeUI.closeWaiting(); } function queryListSuccesss(res) { if (res.status == 200) { //成功 // console.log(res.data.list); showList(res.data.list); } else { //非200则为失败 queryListFailed(res); } // plus.nativeUI.closeWaiting(); } /** * 清空tbody */ function clearHTML() { $("#equ_list").html(""); } /** * 显示查询结果 * @param {Object} list */ function showList(list) { clearHTML(); var _html = ""; for (var i = 0; i < list.length; i++) { var data = list[i]; if (!data) { continue; } _html+="