0

これは、Chrome 開発者コンソールで表示されるエラーです

Uncaught TypeError: Object #<Comment> has no method 'querySelectorAll' tviggr.content.dev.js:3094
that.proccessNode tviggr.content.dev.js:3094
(anonymous function) tviggr.content.dev.js:3212
p.event.dispatch tviggr.content.dev.js:2
g.handle.h tviggr.content.dev.js:2
(anonymous function) jquery.js:6163
x.extend.access jquery.js:861
x.fn.extend.html jquery.js:6138
(anonymous function) pages.js:41
c jquery.js:3048
p.fireWith jquery.js:3160
k jquery.js:8235
r

それが問題のある pages.js コードの部分です。

function nHome(){
    if(currentSiteUrl!="pages/home.php" && switchProcess==false){
        //Translation and variables stuff.
        switchProcess = true;
        $('#mainContent').fadeTo(200,0.0001);
        //Page loading stuff.
        setTimeout(function(){$.when($.ajax(
            {
                url:"pages/home.php",
                cache:false,
                success: function(pagesData)
                {
                    content = pagesData;
                    $('title').html('Home - kamillozz7k');
                    //Setting var for current site
                    currentSiteUrl = 'pages/home.php';
                }
            })).done(function(){
                $('#mainContent').html(content);
                $('#mainContent').fadeTo(500,1);
                setTimeout(function(){switchProcess = false;},300);
            });
                             },200);
    }
}

ここで回答を探しましたが、見つからなかったので投稿します。

4

1 に答える 1

0

さて、私はちょうど知りました。tviggr 拡張機能の問題でした。@Barmar は正しかったのですが、エラーを削除するには削除する必要がありました。だから、それは私のブラウザの問題でした。

于 2013-09-21T19:26:23.447 に答える