【发布时间】:2014-12-21 08:35:39
【问题描述】:
App.Product = DS.Model.extend({
families: DS.hasMany('family'),
name: DS.attr('string'),
config: DS.attr('string')
});
Product.set('name', 'Mark');
Product.save();
保存前的配置属性:
config:[ { key: color, value: [Array : 2] }, ... ]
保存后的配置属性:
config:[object Object],[object Object]
为什么???
【问题讨论】:
-
你是如何设置序列化的?
标签: ember.js ember-data