对象如下:
class Todo extends AV.Object {
get houseFrom(){
return this.get('houseFrom');
}
set houseFrom(houseFrom){
this.set('houseFrom',houseFrom);
}
...
}
初始化对象的时候,指定为0:
todo = new Todo({
houseFrom: 0,
...
})
但保存时候,出现类型问题:
expect type is {:type "String"},but it is '{:type "Number"}'.(…)
求教,我应该在哪里转换这个类型?