App内嵌H5页面联调接口

胸怀万里世界, 放眼无限未来。这篇文章主要讲述App内嵌H5页面联调接口相关的知识,希望能为你提供帮助。

//分享接口 function ShareLp(query,pkid){ var shareUrl=""; var shareImg=""; var shareTll=""; var shareInfo=""; var u = navigator.userAgent; var isandroid = u.indexOf(‘Android‘) > -1 || u.indexOf(‘Adr‘) > -1; //android终端 var isios = !!u.match(/\(i[^; ]+; ( U; )? CPU.+Mac OS X/); //ios终端 if(isAndroid==true){ shareAndroid(shareUrl,shareImg,shareTll,shareInfo); }else if(isIOS==true){ ShareIOS(shareUrl,shareImg,shareTll,shareInfo); } }function shareAndroid(shareUrl,shareImg,shareTll,shareInfo){ window.schoolhealth.callAppFunc("",shareUrl,shareImg,shareTll,shareInfo); //安卓要求五个参数,多传了个空值 }function ShareIOS(shareUrl,shareImg,shareTll,shareInfo){ window.location.href = https://www.songbingjia.com/android/url +"[email  protected]@@[email  protected]@@"+shareUrl+"@@@"+shareImg+"@@@"+shareTll+"@@@"+shareInfo+""; }

【App内嵌H5页面联调接口】

    推荐阅读