//判断是ios还是androidvar system;var ua = navigator.userAgent.toLowerCase(); if (/iphone|ipad|ipod/.test(ua)) { system= "ios"; } else if (/android/.test(ua)) { system= "android"; }