UserAgent

var _iphone=navigator.userAgent.match(/iphone/i);

原文地址:https://www.cnblogs.com/haimingpro/p/3844332.html