////使用typeof来判断对象类型
if(typeof num =="string")
num=parseInt(num);
if(typeof arr =="string")
arr=arr.split(",")