以下:
'<li class="mui-table-view-cell"><span style="float:left">'+file.filename+'</span>'
'<a class="xz" style="margin-left:50px;" href="'+path+file.downloadurl+'">下載</a>'
'<a style=" margin-left:60px;" onclick=openEnclosureView("'+path+file.viewurl+'");>查看</a>'
'</li>'
點擊下載按時不能直接到href中取獲取文件,則須要添加下面事件
mui("#filelist").on('tap','.xz',function(){
mui.openWindow({
url: this.getAttribute("href"),
id: "main-list",
show: {
aniShow: 'zoom-fade-out',
duration: 300
}
});
});