手记

jquery: no last comma in IE

www.xqd2003.com.cn need a new face, the client demand more active images. So I adopt jquery to add slide effect.Everything is fine under FF and Chrome but IE. I tried a lot and at last googled one article said IEs have such a problem because they don't know the format of jquery at the position of the last comma.

this is the format that IEs know:

$('#slider').nivoSlider({     effect: 'fade,sliceDown',     pauseTime: 5000, // How long each slide will show     directionNav:true,     directionNavHide:false,     prevText: '', // Prev directionNav text     nextText: '' //NOTICE HERE, no comma });

 

0人推荐
随时随地看视频
慕课网APP