第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

Webkit中出現(xiàn)意外的令牌非法

Webkit中出現(xiàn)意外的令牌非法

// if the box is outside the window, move it to the endfunction checkEdge() {    var windowsLeftEdge = $('#window').position().left;    $('.box').each( function(i, box) {        // right edge of the sliding box        var boxRightEdge = $(box).position().left + $(box).width();        // position of last box + width + 10px        var newPosition = getNewPosition();        if ( parseFloat(boxRightEdge) < parseFloat(windowsLeftEdge) ) {             $(box).css('left', newPosition);            $(box).remove().appendTo('#window');            first = $('.box:first').attr('class');        }    });} //Uncaught SyntaxError: Unexpected token ILLEGAL Occurs Here// arrange the boxes to be aligned in a rowfunction arrangeBoxes() {    $('.box').each( function(i, item) {        var position = $('#window').position().left + i * ( $(item).width());        $(item).css('left', position+'px')    });}// shifts all the boxes to the left, then checks if any left the windowfunction shiftLeft() {    $('.box').animate({'left' : "-=100px"}, 5000, 'linear', checkEdge());}// returns the new location for the box that exited the windowfunction getNewPosition() {    return $('.box:last').position().left + $('.box:last').outerWidth();}我在上面提到的行上收到了Uncaught SyntaxError:意外的令牌ILLEGAL。它僅在Google Chrome和Safari中發(fā)生。它可以在Firefox中運行,并且相同的代碼也可以在此JSBin(http://jsbin.com/uceqi/18)上運行到底是怎么回事?在Stackoverflow上有很多關(guān)于此問題的參考,但是似乎沒有一個適用于這種情況。如果有幫助,JSLint還會在該行字符2“第22行字符2:問題'意外'”上拋出錯誤。
查看完整描述

3 回答

?
收到一只叮咚

TA貢獻1821條經(jīng)驗 獲得超5個贊

刪除該區(qū)域周圍的所有不可見字符(空格),然后再試一次。


復(fù)制/粘貼代碼時,我已經(jīng)在Safari中看到該錯誤。您可以選擇一些無效(不幸的是不可見)字符。


從jsFiddle復(fù)制時,經(jīng)常發(fā)生在我身上。


查看完整回答
反對 回復(fù) 2019-11-18
  • 3 回答
  • 0 關(guān)注
  • 553 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號