Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/374.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
用于更改给定错误的数字的脚本 var adinit=“xxxx”, adiRVO=真; var adiFunc=null; (功能(){ var adiSrc=document.createElement(“脚本”); 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(“脚本”)[0]; s、 parentNode.insertBefore(adiSrc,s); })();_Javascript - Fatal编程技术网

用于更改给定错误的数字的脚本 var adinit=“xxxx”, adiRVO=真; var adiFunc=null; (功能(){ var adiSrc=document.createElement(“脚本”); 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(“脚本”)[0]; s、 parentNode.insertBefore(adiSrc,s); })();

用于更改给定错误的数字的脚本 var adinit=“xxxx”, adiRVO=真; var adiFunc=null; (功能(){ var adiSrc=document.createElement(“脚本”); 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(“脚本”)[0]; s、 parentNode.insertBefore(adiSrc,s); })();,javascript,Javascript,外接程序页脚变量s为空。因此,在所有浏览器和电话号码中给出错误并没有改变 我怎样才能解决它。请尽快修复尝试使用以下内容,而不是var s=document.getElementById(“脚本”)[0] <script type="text/javascript"> var adiInit = "xxxx", adiRVO = true; var adiFunc = null; (function () { var adiSr

外接程序页脚变量s为空。因此,在所有浏览器和电话号码中给出错误并没有改变


我怎样才能解决它。请尽快修复尝试使用以下内容,而不是
var s=document.getElementById(“脚本”)[0]

<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>

你为什么把所有的代码都写在一行上?你是如何调试的呢?由于信息丰富的链接,你也可以用它来美化你的JSVTZ。感谢VtZ提供了这么好的回复和快速的回答。你是这方面的专家JS@dipanshu没问题
var s = document.getElementsByTagName("script")[0];