javascript - requirejs: is there a way to set several places for search for 1 resource -
i need implement mutual view resolve algorithm in .net mvc requirejs - if resource not nowadays in folder search in shared folder.
do know if possible requirejs?
certianly, have include pathconfig fallbacks, taken straight requirejs manual.
http://requirejs.org/docs/api.html#pathsfallbacks
requirejs.config({ //to timely, right error triggers in ie, forcefulness define/shim exports check. enforcedefine: true, paths: { jquery: [ 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min', //if cdn location fails, load location 'lib/jquery' ] } }); //later require(['jquery'], function ($) { });
javascript jquery requirejs amd
No comments:
Post a Comment