0
我一直在開發一個網頁遊戲,用jquery做一些工作。它在服務器上,但我已將它移回我的筆記本電腦。一切似乎工作正常,除了最重要的功能,其中導入的HTML文件的內容。Jquery Html數據函數
$(".ReportList a").live('click', function(){
var getreportname = $(this).text();
$("#scroller").append("<span>The reportname is " + getreportname + "</span>");
var usersreport = "ReportList_" + User + "";
jQuery.get('Reports/' + getreportname + '.html', function (data) {
$("#" + usersreport).html(data);
$("#" + usersreport + " span").addClass("Py" + User);
updateCount();
});
});
不知道爲什麼它停止工作。希望有任何見解。
任何javascript錯誤? – 2012-01-30 15:47:57
是否存在'Reports'中的文件?還有,大寫R的'Reports'文件夾?區分大小寫可以是特定的環境 – 2012-01-30 15:49:18
你沒有提到**完全**停止工作。 – gdoron 2012-01-30 15:53:02