跳至内容
菜单
此问题已终结
1 回复
4831 查看

Hello community ,


I'm trying to extend this class to add some functions exports.Order = Backbone.Model.extend({ it is difrrent from the most of the classes how we can extend this type of classes ? 

形象
丢弃
编写者 最佳答案

I've found  a solution for people who need  this:


var models = require('point_of_sale.models');

models.Order = models.Order.extend({

// your code here

})

形象
丢弃
相关帖文 回复 查看 活动
0
11月 23
38
1
5月 23
2533
0
2月 16
5624
1
4月 24
2047
1
2月 22
5281