RequireJS is a JavaScript file and module loader

RequireJS

RequireJS 是一个JavaScript模块加载器。它非常适合在浏览器中使用, 它非常适合在浏览器中使用,但它也可以用在其他脚本环境, 就像 Rhino and Node. 使用RequireJS加载模块化脚本将提高代码的加载速度和质量。

/* ---

RequireJS is a JavaScript file and module loader. It is optimized for in-browser use, but it can be used in other JavaScript environments, like Rhino and Node. Using a modular script loader like RequireJS will improve the speed and quality of your code.

IE 6+ .......... compatible ?
Firefox 2+ ..... compatible ?
Safari 3.2+ .... compatible ?
Chrome 3+ ...... compatible ?
Opera 10+ ...... compatible ?

Get started then check out the API.

--- */

http://requirejs.org/

http://requirejs.org/docs/download.html

http://www.requirejs.cn/

https://github.com/jrburke/r.js

DOWNLOAD REQUIREJS

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

时间: 2024-08-25 16:33:45

RequireJS is a JavaScript file and module loader的相关文章

Understanding RequireJS for Effective JavaScript Module Loading

Modular programming is used to break large applications into smaller blocks of manageable code. Module based coding eases the effort for maintenance and increases reusability. However, managing dependencies between modules is a major concern develope

理解用requireJs 来实现javascript的模块化加载

这是我看到的一片关于requirejs的初学者的文章,写的不错,下面结合自己的理解记录一下: 原文:http://www.sitepoint.com/understanding-requirejs-for-effective-javascript-module-loading/ Modular programming is used to break large applications into smaller blocks of manageable code. Module based c

Module loader:模块加载器

<p data-height="265" data-theme-id="0" data-slug-hash="XpqRmq" data-default-tab="result" data-user="286810" data-embed-version="2" data-pen-title="Module loader" class="codepen&

javascript设计模式之Module模块

模块是任何强大的应用程序架构不可或缺的一部分,它通常能够帮助我们清晰地分离和组织项目中的代码单元. JavaScript实现模块模式 的几种方法: (1)对象字面量表示法 (2)Module模式 (3)AMD模式 (4)CommonJS模块 (5)ECMAScript Harmony 1.对象字面量 示例: var myModule={ myProperty:"someValue", myConfig:{ useCaching:true, language:"en"

ResolveUrl in external JavaScript file in asp.net project

https://stackoverflow.com/questions/11263425/page-resolveurl-is-not-working-in-javascript The problem, as poncha pointed out, is that as far as ASP.NET is concerned, the content delivered in your .js file is a string. It does not apply any sort of re

javascript file上传并显示图片

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>test</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <

【JavaScript】设计模式-module模式及其改进

写在前面 编写易于维护的代码,其中最重要的方面就是能够找到代码中重复出现的主题并优化他们,这也是设计模式最有价值的地方 说到这里...... <head first设计模式>里有一篇文章,是说使用模式的心智, 1.初学者"心智" :"我要为HELLO WORLD找个模式" 2.中级人员模式: "或许这里我需要一个单件模式" 3.悟道者心智:"在这里使用一个装饰者模式相当自然" but,but,but,不学,连初学者

JavaScript File API应用——如何设计和实现文件上传组件

(1)精简"带进度条文件上传组件"的设计与实现 XMLHttpRequest第二版为我们提供了便利的progress事件,通过为xhr.upload.onprogress指定处理函数,可以快速制作进度条,JQuery插件参考代码如下: (function($) { $.fn.uploader = function(userOptions) { var options = { id : "uploader", url : "uploadAction.acti

Inline Workers--Web workers without a separate Javascript file

<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> </head> <body> <div id="log"></div> <script id="worker1" type="javascript/worker"> // This script won't be