问题
I have this piece of code:
var skin = "christmas";
requirejs.config({
paths: {
languagesLocal : [
BaseUrl + skin + '/js/languagesLocal',
BaseUrl + "default" + '/js/languagesLocal'
]
}
});
I want to have a variable that tells me which link was executed.
something like isFallbackLinkWasExecuted == true
How can I achieve that? or execute a code incase the fallback link was triggered.
来源:https://stackoverflow.com/questions/13974386/how-do-i-create-a-flag-when-fallback-link-was-executed-in-requirejs