标签:cti load pair 技术 nbsp ring return 二维码扫码 substring
<script>
function getQueryVariable(variable)
{
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if(pair[0] == variable){return pair[1];}
}
return(false);
}
alert(getQueryVariable("id"))
</script>
JS中获取后台生成二维码扫码后截取后台传入的动态id渲染在新h5页面上
标签:cti load pair 技术 nbsp ring return 二维码扫码 substring
原文地址:https://www.cnblogs.com/huayang1995/p/14453899.html