var browser={
Versions:function () {
var u = navigator.useragent, app = Navigator.appversion;
return {
Trident:u.indexof (' Trident ') >-1,/*ie core */
Presto:u.indexof (' presto ') >-1,/*opera core */
Webkit:u.indexof (' AppleWebKit ') >-1,/* Apple, Google kernel */
Gecko:u.indexof (' Gecko ') >-1 && u.indexof (' khtml ') = = -1,/* Firefox kernel */
Mobile:!! U.match (/applewebkit.*mobile.*/),/* is a mobile terminal */
Ios:!! U.match (/\ (i[^;] +;( U;)? Cpu.+mac OS x/),/*ios terminal */
Android:u.indexof (' Android ') >-1 | | U.indexof (' Adr ') >-1,/*android terminal */
Iphone:u.indexof (' iphone ') >-1,/* Whether for IPhone or Qqhd browser */
Ipad:u.indexof (' IPad ') >-1,/* whether ipad*/
Webapp:u.indexof (' Safari ') = =-1,/* Whether the Web should be program, no head with bottom */
Weixin:u.indexof (' Micromessenger ') >-1,/* Whether (new 2015-01-22) */
Qq:u.match (/\sqq/i) = = "QQ"/* whether qq*/
};
}(),
Language: (Navigator.browserlanguage | | navigator.language). toLowerCase ()
}
$ (". Twoline_info_img"). Click (function () {
if (browser.versions.android) {
/* Call the Android interface */
Window.javaInterface.H5Request (' {' eventId ': "Details", "data": {"uuid": "' +item.uuid+ '"} ');
}else if (Browser.versions.ios) {
/* Call The iOS interface */
H5request (Json.parse (' {"eventId": "Details", "data": {"uuid": "' +item.uuid+ '"} '));
}
});
jquery sends requests to Apple or Android