如下:
'<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
              }
        });
});

相关文章:

  • 2022-12-23
  • 2021-12-16
  • 2022-12-23
  • 2021-08-16
  • 2021-11-20
  • 2022-12-23
  • 2018-04-03
  • 2021-06-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2021-10-31
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案