码迷,mamicode.com
首页 > Web开发 > 详细

requirejs 定义模块中含有prototype

时间:2016-03-11 20:29:06      阅读:296      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!