javascript - How to load a unique when.js file in html -
For now, this setup is working, but I want to improve it.
apps.html:
Lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" & gt; & Lt; Title & gt; During the experiments & lt; / Title & gt; & Lt; Script charset = "UTF-8" data-key = "./spec/js/ require-minimum" src = "./ apps / js / require-2.1.9.js" & gt; & Lt; / Script & gt; & Lt; Script src = "https://www.promisejs.org/polyfills/promise-6.0.0.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; Requirement (['when'], function (when) {...}); & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body id = "body" & gt; ...
Where the file is required- minium.js
is included:
".", "Backbone" : "" "," Back ":" "," backbone ": {" deps ": {" underscore ": {export:" _ "}," jquery ": {" deps ": [" when "," Jquery "]," export ":" backbone "}," when ": {" export ":" when "}}}; when.js
to successfully load , in apps / js /
when necessary, when .which
is your Load the "Module". Is there any single way when a single when. Which is
LI Is a file or is this my setup not set correctly?
Comments
Post a Comment