ajax load本地頁面,顯示error,找不到這個頁面,是怎么回事?
?$("#btnshow").bind("click", function() {
??????????????? var $this = $(this);
??????????????? $(".content")
??????????????????? .html("<img src='images/lovely.jpg' alt=''/>")
??????????????????? .load('food.html', function(responseText, textStatus) {
??????????????????????? $this.attr("disabled", "true");
??????????????????????? alert(responseText.toString());
??????????????????????? alert(textStatus);
??????????????????? })
??????????? })
2018-09-17
本地jsp沒有通過服務器直接ajax中用jsonp訪問本地js,使用file協(xié)議
2017-11-22
路徑不對?