3
此example沒有顯示確切的問題,只是有一個想法。例如,當我點擊頁面2時,內容不會加載到div中,我必須刷新頁面才能看到頁面2的內容。使用jQuery mobile無法動態加載到DIV中的內容
P.S:相同的代碼在其他頁面中重複。
代碼:
$(document).ready(function() {
$('.content-primary').html("Content of page 1"); // This line just in this example
//$(".content-primary").load("content-of-page.php"); // but I used this code on all my pages
});
你意思是這樣的http://jsfiddle.net/gCsDz/6/ – Morpheus 2013-04-05 14:45:14
哦對不起,當我更新JSFIDDLE,我得到這個錯誤。 – Mils 2013-04-05 14:47:51