一、TypeError 一、TypeErrorfunction TypeJudge(attr){ if(!Array.isArray(attr)){ throw new TypeError("attr必须是一个数组") }}