• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Joanna Qian
Stay Hungry, Stay Foolish!
博客园    首页    新随笔    联系   管理    订阅  订阅
2013年10月29日
RequireJS使用小结1——for Effective JavaScript Module Loading
摘要: 1. require和define的区别The require() function is used to run immediate functionalities, while define() is used to define modules for use in multiple locations.require()——用于一次性定义的语句或模块,或立即执行的语句或模块define()—— 用于可以重用的模块,可以放在不同的地方2. 管理依赖文件的载入顺序——Managing the Order of Dependent FilesRequireJS uses Asynchrono 阅读全文
posted @ 2013-10-29 01:07 Joanna Qian 阅读(319) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3