Answers for "cordova js how to load local file in subdir"

0

cordova js how to load local file in subdir

var path = window.location.href.replace('index.html', '');
var jsonFile = path + "menus/" + menuc + ".json";
$.getJSON(jsonFile, function(result) {
    sortAllergies(result);
});
Posted by: Guest on August-15-2020

Code answers related to "cordova js how to load local file in subdir"

Code answers related to "Javascript"

Browse Popular Code Answers by Language