Javascript vs. IE8 - Expected identifier, string or number

后端 未结 3 2019
孤城傲影
孤城傲影 2021-02-08 06:34

No, it\'s not an extra comma.

Here is the snip that is giving me the problem.

$(document).ready(function(){   
    $(\"div#slider\").easySlider({
                


        
3条回答
  •  没有蜡笔的小新
    2021-02-08 07:23

    Try putting all your object properties in (double)quotes, like this:

    $("div#slider").easySlider({
        'auto': false,
        'continuous': true,
        'nextId': "nextBtn",
        'prevId': "prevBtn"
    });
    

提交回复
热议问题