首页 > Web开发 > 详细

requirejs 定义模块中含有prototype

时间:2016-03-11 20:26:19      阅读:238      评论:0      收藏:0      [点我收藏+]

因为我对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的模块中可以返回一个对象/方法。

requirejs 定义模块中含有prototype

原文:http://www.cnblogs.com/fsong/p/5266860.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!