タグ

ブックマーク / requirejs.org (2)

  • RequireJS API

    Usage§§ 1-1.3 Load JavaScript Files§ 1.1 data-main Entry Point§ 1.2 Define a Module§ 1.3 Simple Name/Value Pairs§ 1.3.1 Definition Functions§ 1.3.2 Definition Functions with Dependencies§ 1.3.3 Define a Module as a Function§ 1.3.4 Define a Module with Simplified CommonJS Wrapper§ 1.3.5 Define a Module with a name§ 1.3.6 Other Module Notes§ 1.3.7 Circular Dependencies§ 1.3.8 Specify a JSONP Service

    minodisk
    minodisk 2011/07/14
    §3 Configuration Option に baseURL 等の設定の渡し方の記述あり。
  • 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+ ...... co

    minodisk
    minodisk 2011/07/13
    exports, require 提供でモジュールの動的読み込みが可能に。node.js用に書いたモジュールもモノによってはそのまま使えそう。
  • 1