onopen: function (e) {
var el = e.element;
var id = el.id;
if (id) {
this.showLoading();
$.ajax({
url: "../data/AjaxService.aspx?method=GetEmployee",
data: { id: id },
async: true,
success: function (text) {
//模拟网络延迟
setTimeout(function () {
var data = mini.decode(text);
var html = $("#formTemplate").tmpl(data)[0];
tip.setContent(html);
}, 300);
}
});
}
}
我改成
onopen: function (e) {
var el = e.element;
var id = el.id;
if (id) {
var data = [{"name": "234"}];
var html = $("#formTemplate").tmpl(data)[0];
tip.setContent(html);
}
}
为啥出来值是空的作者: felt 时间: 2020-12-2 17:19:40
哎呀 发表于 2020-12-2 17:14
onopen: function (e) {
var el = e.element;
var id = el.id;