Posted on November 6, 2019November 6, 2019 by adminjs判断iphone/ipad if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPad/i))) { //do code }