跳至內容
選單
此問題已被標幟
1 回覆
4837 瀏覽次數

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
2547
0
2月 16
5636
1
4月 24
2061
1
2月 22
5293