Internet Explorer 8 兼容性 jQuery
Internet Explorer 8 Compatibilty jQuery
嗨,我只是想知道是否有人可以帮助我解决这个问题,我一直在 IE8 中得到这个,我已经通过 jQuery 并检查了所有错误,我确实有太多错误,' s 在选项之后和括号之后,但无论我尝试什么,我都无法让它识别下面的 $ 代码...
$(document).ready(function() {
/* --------------------------------------------------------------------------- */
/* 1. Main Slider (Revolution Slider)
/* --------------------------------------------------------------------------- */
$('.revslider').revolution( { <-- THIS IS LINE 31
delay : 9000,
startwidth : 1120,
startheight : 535,
onHoverStop : "on", // Stop Banner Timet at Hover on Slide on/off
thumbWidth : 100, // Thumb With and Height and Amount (only if navigation Tyope set to thumb !)
thumbHeight : 50,
thumbAmount : 3,
hideThumbs : 200,
navigationType : "none", //bullet, thumb, none, both (No Shadow in Fullwidth Version !)
navigationArrows : "verticalcentered", //nexttobullets, verticalcentered, none
navigationStyle : "round", //round,square,navbar
touchenabled : "on", // Enable Swipe Function : on/off
navOffsetHorizontal : 0,
navOffsetVertical : 20,
stopAtSlide : -1, // Stop Timer if Slide "x" has been Reached. If stopAfterLoops set to 0, then it stops already in the first Loop at slide X which defined. -1 means do not stop at any slide. stopAfterLoops has no sinn in this case.
stopAfterLoops : -1, // Stop Timer if All slides has been played "x" times. IT will stop at THe slide which is defined via stopAtSlide:x, if set to -1 slide never stop automatic
fullWidth : "on",
shadow : 0
});
您可以使用 jQuery
而不是 $
,导致
jQuery(document).ready(function() {
jQuery('.revslider').revolution( {
...
另请注意 jQuery 2.x
不支持 IE8 - see here。
您需要使用 jQuery 1.x
来支持 IE6+。
还要检查您是否正确地包含了脚本 - 请参阅此问题:How does $(document).ready() work in IE 8?
嗨,我只是想知道是否有人可以帮助我解决这个问题,我一直在 IE8 中得到这个,我已经通过 jQuery 并检查了所有错误,我确实有太多错误,' s 在选项之后和括号之后,但无论我尝试什么,我都无法让它识别下面的 $ 代码...
$(document).ready(function() {
/* --------------------------------------------------------------------------- */
/* 1. Main Slider (Revolution Slider)
/* --------------------------------------------------------------------------- */
$('.revslider').revolution( { <-- THIS IS LINE 31
delay : 9000,
startwidth : 1120,
startheight : 535,
onHoverStop : "on", // Stop Banner Timet at Hover on Slide on/off
thumbWidth : 100, // Thumb With and Height and Amount (only if navigation Tyope set to thumb !)
thumbHeight : 50,
thumbAmount : 3,
hideThumbs : 200,
navigationType : "none", //bullet, thumb, none, both (No Shadow in Fullwidth Version !)
navigationArrows : "verticalcentered", //nexttobullets, verticalcentered, none
navigationStyle : "round", //round,square,navbar
touchenabled : "on", // Enable Swipe Function : on/off
navOffsetHorizontal : 0,
navOffsetVertical : 20,
stopAtSlide : -1, // Stop Timer if Slide "x" has been Reached. If stopAfterLoops set to 0, then it stops already in the first Loop at slide X which defined. -1 means do not stop at any slide. stopAfterLoops has no sinn in this case.
stopAfterLoops : -1, // Stop Timer if All slides has been played "x" times. IT will stop at THe slide which is defined via stopAtSlide:x, if set to -1 slide never stop automatic
fullWidth : "on",
shadow : 0
});
您可以使用 jQuery
而不是 $
,导致
jQuery(document).ready(function() {
jQuery('.revslider').revolution( {
...
另请注意 jQuery 2.x
不支持 IE8 - see here。
您需要使用 jQuery 1.x
来支持 IE6+。
还要检查您是否正确地包含了脚本 - 请参阅此问题:How does $(document).ready() work in IE 8?