zoukankan      html  css  js  c++  java
  • Requirejs开篇

    前言

        随着页面的内容丰富,以及网站体验更好、性能优化等,原有的通过script标签引入JavaScript脚本的方式已经不能很好地解决,此时新的一种JavaScript加载方式产生了——延时加载、执行。而js(JavaScript,下同)模块化可以说是上面延时、执行的一种表示形式。

    requirejs

    RequireJS是一个JavaScript文件和模块加载器。 它针对浏览器中的使用进行了优化,但它可以用于其他JavaScript环境,如Rhino和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 ✔

    参考资料:

    http://requirejs.org/

  • 相关阅读:
    UVA 12545 Bits Equalizer
    UVA 1610 Party Games
    UVA 1149 Bin Packing
    UVA 1607 Gates
    UVA 12627 Erratic Expansion
    UVA10562-Undraw the Trees(递归)
    UVA10129-Play on Words(欧拉路径)
    UVA816-Abbott's Revenge(搜索进阶)
    UVA1103-Ancient Messages(脑洞+dfs)
    UVA839-Not so Mobile
  • 原文地址:https://www.cnblogs.com/godbell/p/6034113.html
Copyright © 2011-2022 走看看