首页 > 解决问题 > 正文

判断链接带https商务通加载
2022-06-02 17:30:46   来源:   评论:0 点击:

var ishttps = & 39;https:& 39; == document location protocol ? true: false;if(ishttps){document writeln("<script language

var ishttps = 'https:' == document.location.protocol ? true: false;

if(ishttps){

document.writeln("<script language=\'javascript\' src=\'https://-----\'></script>");

}else{

document.writeln("<script language=\'javascript\' src=\'http://----\'></script>");

}

相关热词搜索:

上一篇:windows10 微信小程序 反编译
下一篇:phpcms v9 数据库清空

分享到: 收藏