<script type="text/javascript">
var adiInit = "xxxx",
adiRVO = true;
var adiFunc = null;
(function () {
var adiSrc = document.createElement("script");
adiSrc.type = "text/javascript";
adiSrc.async = true;
adiSrc.src = ("https:" == document.location.protocol ? "https://static-ssl" : "http://static-cdn") + ".responsetap.com/static/scripts/rTapTrack.min.js";
var s = document.getElementById("script")[0];
s.parentNode.insertBefore(adiSrc, s);
})();
</script>
在页脚添加中,变量s变为空。所以在所有浏览器和电话号码中给出错误都没有改变。
我该如何解决呢。请尽快修复
答案 0 :(得分:1)
尝试使用以下代替var s = document.getElementById("script")[0];
var s = document.getElementsByTagName("script")[0];