var deviceInfo = FR.Mobile.getDeviceInfo(); var str = deviceInfo.Model; if (str.indexOf("iPhone")!= -1 || str.indexOf("iPad")!= -1 || str.indexOf("Phone") != -1) { src = "iosamap://keywordNavi?sourceApplication=softname&style=2";} else { src = "androidamap://keywordNavi?sourceApplication=softname&style=2"; } FR.doHyperlinkByGet({ url: src + "&keyword=" + keyword,title: '高德'}); |