因为我对requirejs不熟悉,不清楚如何定义带有prototype的模块,

在看了:https://gist.github.com/jonnyreeves/2474026 的demo之后,就明白了,呦西。

person.js的注释中提到requireJS simply requires us to return  a single value (function / Object) which represents this definition. In our case, we will be returning the Class' function.。

主要是说requirejs的模块中可以返回一个对象/方法。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2021-12-23
  • 2021-06-25
  • 2022-12-23
猜你喜欢
  • 2021-09-27
  • 2021-07-18
  • 2021-12-14
  • 2021-05-21
  • 2021-09-12
  • 2022-01-01
  • 2021-07-21
相关资源
相似解决方案