<script>
var source = document.getElementById('entry-template').innerHTML;
var template = Handlebars.compile(source);
var da='';
mui.plusReady(function() {//document.getElementById("mui-scroll").innerHTML=template();
//window.addEventListener('newsId',function(event){
var id =1;//event.detail.id;
document.getElementById("htitle").innerHTML="htitle";
if(id){
loaddatelist.tutorone(id, function(rs) {
if(1){//if(rs.status===1){
document.getElementById("mui-scroll").innerHTML=template();
}else{
mui.toast(rs.content);
}
});
}else{
mui.toast("参数错误"+id);
}
//});
});
</script>
注释window.addEventListener('newsId',function(event){后,能显示document.getElementById("mui-scroll").innerHTML=template()模板,但数据就没得了
不知道是bug还是我哪里写错了?
0 个回复