传单个值可以拿到,传多个值就拿不到,不知道是不是没传过去还是取值问题start=[_xy[0],_xy[1]];end=[webX,webY];
pM = new Worker("js/worker"+phoneMac.length+".js");
pM.postMessage(start,end);
把值封装在对象里试试
pM.postMessage({ start:start, end:end });
我没用过Worker,但是估计这样可以