在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:requirejs/requirejs开源软件地址:https://github.com/requirejs/requirejs开源编程语言:JavaScript 67.9%开源软件介绍:RequireJSRequireJS loads plain JavaScript files as well as more defined modules. It is optimized for in-browser use, including in a Web Worker, but it can be used in other JavaScript environments, like Rhino and Node. It implements the Asynchronous Module API. RequireJS uses plain script tags to load modules/files, so it should allow for easy debugging. It can be used simply to load existing JavaScript files, so you can add it to your existing project without having to re-write your JavaScript files. RequireJS includes an optimization tool you can run as part of your packaging steps for deploying your code. The optimization tool can combine and minify your JavaScript files to allow for better performance. If the JavaScript file defines a JavaScript module via define(), then there are other benefits RequireJS can offer: improvements over traditional CommonJS modules and loading multiple versions of a module in a page. RequireJS also has a plugin system that supports features like i18n string bundles, and text file dependencies. RequireJS does not have any dependencies on a JavaScript framework. RequireJS works in IE 6+, Firefox 2+, Safari 3.2+, Chrome 3+, and Opera 10+. LicenseMIT Code of ConductjQuery Foundation Code of Conduct. Directories
TestsThis repo assumes some other repos are checked out as siblings to this repo:
So when the above clones are done, the directory structure should look like:
You will need to be connected to the internet because the JSONP and remoteUrls tests access the internet to complete their tests. Serve the directory with these 4 siblings from a web server. It can be a local web server. Open requirejs/tests/index.html in all the browsers, click the arrow button to run all the tests. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论