10]=getSomeArray(); 同样,解构可以用在函数参数声明中: functiondrawText({text="",location:[x,y]=[0,0],bold=false}){//Drawtext