1

jQuery Web モバイル アプリケーションを作成しています。Firefox では問題なく動作しますが、Internet Explorer または Google Chrome で実行すると次のエラーが表示されます。 json file not load

$.getJSON('menu.json', function(menu) {
    var processedTemplate = $.mustache($("#menuTemplate").html(),    menu.menu);
    $list.html(processedTemplate);
});
// .error(function(jqXHR, textStatus, errorThrown) {
// alert("error " + textStatus + " incoming Text " + jqXHR.responseText);
// });
.error(function() { alert("Sorry can't load JSON file locally in this browser!")});
4

0 に答える 0