Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/453.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
Javascript Facebook js代码中存在拒绝访问错误_Javascript_Facebook - Fatal编程技术网

Javascript Facebook js代码中存在拒绝访问错误

Javascript Facebook js代码中存在拒绝访问错误,javascript,facebook,Javascript,Facebook,在过去一周左右的时间里,我在使用Facebook的JSSDK代码时遇到了零星的javascript错误 这就是错误: 以下是代码行: Facebook网站上的JavaScript代码: /*1345677565,173217057*/ if (window.CavalryLogger) { CavalryLogger.start_js(["p0usZ"]); } if(!Array.isArray)Array.isArray=function(a){return Object.proto

在过去一周左右的时间里,我在使用Facebook的JSSDK代码时遇到了零星的javascript错误

这就是错误:

以下是代码行:

Facebook网站上的JavaScript代码:

/*1345677565,173217057*/

if (window.CavalryLogger) { CavalryLogger.start_js(["p0usZ"]); }

if(!Array.isArray)Array.isArray=function(a){return Object.prototype.toString.call(a)=='[object Array]';};
if(!Array.prototype.map)Array.prototype.map=function(a,b){if(typeof a!='function')throw new TypeError();var c,d=this.length,e=new Array(d);for(c=0;c<d;++c)if(c in this)e[c]=a.call(b,this[c],c,this);return e;};if(!Array.prototype.forEach)Array.prototype.forEach=function(a,b){this.map(a,b);};if(!Array.prototype.filter)Array.prototype.filter=function(a,b){if(typeof a!='function')throw new TypeError();var c,d,e=this.length,f=[];for(c=0;c<e;++c)if(c in this){d=this[c];if(a.call(b,d,c,this))f.push(d);}return f;};if(!Array.prototype.every)Array.prototype.every=function(a,b){if(typeof a!='function')throw new TypeError();var c=new Object(this),d=c.length;for(var e=0;e<d;e++)if(e in c)if(!a.call(b,c[e],e,c))return false;return true;};if(!Array.prototype.some)Array.prototype.some=function(a,b){if(typeof a!='function')throw new TypeError();var c=new Object(this),d=c.length;for(var e=0;e<d;e++)if(e in c)if(a.call(b,c[e],e,c))return true;return false;};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a,b){var c=this.length;b|=0;if(b<0)b+=c;for(;b<c;b++)if(b in this&&this[b]===a)return b;return -1;};
if(!Date.now)Date.now=function(){return new Date().getTime();};
window.__DEV__=window.__DEV__||0;
/*1345677565173217057*/
if(window.CavalryLogger){CavalryLogger.start_js([“p0usZ”]);}
if(!Array.isArray)Array.isArray=函数(a){return Object.prototype.toString.call(a)=='[Object Array]';};

if(!Array.prototype.map)Array.prototype.map=function(a,b){if(typeof a!=“function”)抛出新的TypeError();var c,d=this.length,e=new Array(d);for(c=0;cHow你在visual studio中有javascript错误吗?@fastreload你可以将VS连接到IE.OP,当你没有连接时它会重新启动吗?它会在其他浏览器中重新启动吗?我在FireFox中看到过,但已经有一段时间没有了。我会更频繁地使用FF,以便尝试捕捉它。谢谢。
<script>
    window.fbAsyncInit = function () {
        FB.init({
            appId: 'xxxx',
            status: true,
            cookie: true,
            xfbml: true
        });
    };

    // Load the SDK Asynchronously
    (function (d) {
        var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
        if (d.getElementById(id)) { return; }
        js = d.createElement('script'); js.id = id; js.async = true;
        js.src = "//connect.facebook.net/en_US/all.js";
        ref.parentNode.insertBefore(js, ref);
    }(document));
</script>