这是官网提供的关联文件的方法
AV.File.withURL
var file = AV.File.withURL('Satomi_Ishihara.gif', 'http://ww3.sinaimg.cn/bmiddle/596b0666gw1ed70eavm5tg20bq06m7wi.gif');
var todo = new AV.Object('Todo');
todo.set('girl',file);
todo.set('topic','明星');
todo.save();
有没有其他的关联方法呢?
比如
//design.user = AV.Object.createWithoutData('user', objectId)
design.image = AV.File.createWithoutData(design.image.objectId)
-
创建时间
19年1月31日
-
最后回复
19年1月31日
-
2
回复
-
1.1K
浏览
-
1
用户