let animObject={
"__type__": "cc.AnimationClip",
"_name": "",
"_objFlags": 0,
"_duration": 0,
"sample": 60,
"curveData": {},
"events": []
};
let data=JSON.stringify(animObject,null," ");
Editor.assetdb.create("db://assets/textures/xx.anim",data,function (err,results){
});