gpt4 book ai didi

javascript - Internet Explorer 8 兼容性 jQuery

转载 作者:行者123 更新时间:2023-12-03 10:10:50 26 4
gpt4 key购买 nike

IE 8 Error

嗨,我只是想知道是否有人可以帮助我解决这个问题,我在 IE8 中不断遇到这个问题,我已经通过 jQuery 并检查了所有错误,我确实有几个太多了,之后的选项和一些在括号之后,但无论我尝试什么,我都无法让它识别 $ 代码,如下所示...

$(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?

关于javascript - Internet Explorer 8 兼容性 jQuery,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30119521/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com