微信WeixinJSBridgeAPI使用实例_javascript技巧
来源:动视网
责编:小采
时间:2020-11-27 21:38:45
微信WeixinJSBridgeAPI使用实例_javascript技巧
微信WeixinJSBridgeAPI使用实例_javascript技巧:注意:请在微信中测试 微信WeixinJSBridge API (function(){ var a=document.getElementsByTagName(html)[0]; window.Session={appDomain:a.getAttribute(data-app-domain),staticDo
导读微信WeixinJSBridgeAPI使用实例_javascript技巧:注意:请在微信中测试 微信WeixinJSBridge API (function(){ var a=document.getElementsByTagName(html)[0]; window.Session={appDomain:a.getAttribute(data-app-domain),staticDo

注意:请在微信中测试
微信WeixinJSBridge API
(function(){
var a=document.getElementsByTagName("html")[0];
window.Session={appDomain:a.getAttribute("data-app-domain")||"",staticDomain:a.getAttribute("data-static-domain")||""}
})();
window.registNS=function(fullNS,isIgnorSelf){
var reg=/^[_$a-z]+[_$a-z0-9]*/i;var nsArray=fullNS.split(".");
var sEval="";
var sNS="";
var n=isIgnorSelf?nsArray.length-1:nsArray.length;
for(var i=0;i
微信WeixinJSBridgeAPI使用实例_javascript技巧
微信WeixinJSBridgeAPI使用实例_javascript技巧:注意:请在微信中测试 微信WeixinJSBridge API (function(){ var a=document.getElementsByTagName(html)[0]; window.Session={appDomain:a.getAttribute(data-app-domain),staticDo