mui中的a标签注意事项

如下:
'<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
              }
        });
});
原文地址:https://www.cnblogs.com/zyanrong/p/11315497.html