Parse.File.fromJSON 把一个JSON转换成Fi
2018-08-01 本文已影响0人
NextStack
var file = Parse.File.fromJSON({
name: 'file_name.txt',
url: 'https://vpush.cloud/test.txt',
__type: 'File'
});
其中最重要的,是__type
参数,并且File
区分大小写。
var file = Parse.File.fromJSON({
name: 'file_name.txt',
url: 'https://vpush.cloud/test.txt',
__type: 'File'
});
其中最重要的,是__type
参数,并且File
区分大小写。