对象如下:

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"}'.(…)
求教,我应该在哪里转换这个类型?

表里面已经有这个字段了,且类型是 String,这个时候存 Number 类型是存不上去的。

已解决 谢谢