开发者

jquery missing { after property

开发者 https://www.devze.com 2023-01-05 07:20 出处:网络
I keep getting an error, missing { after property for the following code. <script type=\"text/javascript\">

I keep getting an error, missing { after property for the following code.

    <script type="text/javascript">
        $(function(){
            var storage = new Array("hi","h2","hi3","h4","h5","6","7","hi8","hi9","10");
            // Slider
            $('#slider').slider({
                max: 10,
                orientation: 'vertical'
                slide: function(e,ui) {
                    $('#storage').html(storage[ui.value-1]);
                }
 开发者_开发问答           });
        });
    </script>


You are missing a comma.

Replace:

orientation: 'vertical'

With

orientation: 'vertical',
0

精彩评论

暂无评论...
验证码 换一张
取 消