...获得30以内的其他数字(6-7,11-21,23-30)用js怎么写函数?答:let [n,m,result,except] = ['1-5, 8-10, 22',30,[],[]]for(let v of n.trim().split(',')){ if(!v.includes('-')) except.push(v*1);else { let [min,max] = v.split('-');for(; min <= max; min++){ except.push(min*1);} } } for(; m > 0; m--)...