Exploring and Thinking

jQuery Mobile 按下載鈕後連結檔案失敗

使用 jQuery Mobile設計下載檔案鈕,實作後點該連結卻出現undefined。

後來發現只要加 data-ajax="false" 就正常了。參考網頁:Downloadable files using jQuery mobile

<a href="http://nws.tw/file.zip" data-ajax="false" data-role="button" data-theme="c">File.zip</a>
Share:

熱門文章

標籤