我正在使用PhoneGap和jQuery Mobile創建本機Android應用程序。jQuery和PhoneGap - 包含HTML文件客戶端與HTML或JS?
當我創建一個多頁面頁面時,我不會一直包含相同的導航欄。 所以我試圖包括一個(S)的HTML。但它不起作用。 這就是我這麼遠的嘗試:
<!--#include file="navigation.inc.html" -->
<!--#include virtual="navigation.inc.html" -->
<!--#include file="navigation.inc.shtml" -->
<!--#include virtual="navigation.inc.shtml" -->
該頁面未放置在(網絡)服務器上。 當navigation.inc.shtml不是服務器時,是否可以使用html或javascript包含該文件?
請參閱:http://stackoverflow.com/questions/7974630/jquery-mobile-include-footer-from-external-file – tomo7
你搖滾,這個作品很棒.. –