if (navigator.userAgent.match(/(iPod|iPhone|iPad)/)) { } 转载于:https://www.cnblogs.com/lichihua/p/10471898.html