Lock in $30 Savings on PRO—Offer Ends Soon! ⏳

AMD/RequireJS @2012.07.02

AMD/RequireJS @2012.07.02

Shin-ichi Ueda

July 02, 2012
Tweet

Other Decks in Technology

Transcript

  1. ͜ Μ ͳ ͜ ͱ ʹ ͳ ͬ ͯ ͍

    · ͤ Μ ͔ ʁ 12೥7݄2೔݄༵೔
  2. ಡΈࠐΈ஍ࠈ <script type="text/javascript" src="jquery.min.js"></script> <script type="text/javascript" src="jquery.plugin1.js"></script> <script type="text/javascript" src="jquery.plugin2.js"></script>

    <script type="text/javascript" src="jquery.plugin3.js"></script> <script type="text/javascript" src="jquery.plugin4.js"></script> <script type="text/javascript" src="jquery.plugin5.js"></script> <script type="text/javascript" src="jquery.plugin6.js"></script> <script type="text/javascript" src="jquery.plugin7.js"></script> <script type="text/javascript" src="jquery.plugin8.js"></script> <script type="text/javascript" src="jquery.plugin9.js"></script> <script type="text/javascript" src="jquery.plugin10.js"></script> <script type="text/javascript" src="jquery.plugin11.js"></script> <script type="text/javascript" src="jquery.plugin12.js"></script> <script type="text/javascript" src="jquery.plugin13.js"></script> <script type="text/javascript" src="jquery.plugin14.js"></script> ..... 12೥7݄2೔݄༵೔
  3. var myModule = function() { // Private Variable var privateVar

    = ‘’; // Private Method var privateFunction = function() {}; return { // Public Variable publicVar: '', // Public Method publicFunction: function() {} } } (); // ಗ໊ؔ਺(͙͢࢖͑ΔΑ͏ʹ͢Δ) http://yuiblog.com/blog/2007/06/12/module-pattern/ 12೥7݄2೔݄༵೔