标签:
function jiexi(id) {
var getTabBarActivityUrl = ‘/QuestionReport?filter=‘;
var urlParam = {};
ajaxRequest(getTabBarActivityUrl + JSON.stringify(urlParam), ‘GET‘, ‘‘, function (ret, err) {
if (ret) {
// alert(‘长度为‘+ret.length);
/*var ret =[
{"gllxid":"电子滴","lxr":123456,"lxdh":"15255444125","updatedat":"2009-08-20"},
{"gllxid":"电子滴3","lxr":1234563,"lxdh":"15255444126","updatedat":"2016-08-20"}
];
*/
// alert(‘长度为‘+ret.length);
var content = $api.byId(‘banner-content‘);
var tpl = $api.byId(‘banner-template‘).text;
// alert(tpl);
var tempFn = doT.template(tpl);
// alert(JSON.stringify(ret));
content.innerHTML = tempFn(ret);
// var s=tempFn(ret);
// alert(s);
// alert(content);
// alert(content.innerHTML);
api.hideProgress();
//init tapmode
api.parseTapmode();
} else {
api.toast({msg: err.msg, location: ‘middle‘})
}
api.hideProgress();
})
}
标签:
原文地址:http://www.cnblogs.com/netblaze/p/5789300.html