Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript jQuery fx速度是不同的速度_Javascript_Jquery - Fatal编程技术网

Javascript jQuery fx速度是不同的速度

Javascript jQuery fx速度是不同的速度,javascript,jquery,Javascript,Jquery,我知道这类似于另一个堆栈溢出帖子,但它没有回答我的问题 这是我的js $.fx.speeds._default = 1000; $(function () { $("#tabs").tabs(); }); function social() { $(document).ready(function () { $(".info7").hide(); $("#social_media").show("fade"); $("#hide

我知道这类似于另一个堆栈溢出帖子,但它没有回答我的问题

这是我的js

$.fx.speeds._default = 1000;

$(function () {
    $("#tabs").tabs();
});

function social() {
    $(document).ready(function () {
        $(".info7").hide();
        $("#social_media").show("fade");
        $("#hide").show();
    });
}

function social_hide() {
    $(document).ready(function () {
        $(".info7").show();
        $("#social_media").hide("fade");
        $("#hide").hide();
    });
}

<!--
if (screen.width <= 800) {
    document.location = "iphone-website.php";
}
//-->

//tipsy popup code

$(function () {
    $('.info').tipsy({fade:true, gravity:'s', fallback:"Use the different search engines to find what you're looking for, These search engines search leagucraft.com and mobafire.com for the information you need."});
    $('.info2').tipsy({fade:true, gravity:'s', fallback:"Click this to open the search engine box in another window."});
    $('.info3').tipsy({fade:true, gravity:'s', fallback:"You can put your user name here instead."});
    $('.info4').tipsy({fade:true, gravity:'s', fallback:"League of Legends InfoMatic Blog."});
    $('.info5').tipsy({fade:true, gravity:'s', fallback:"League of Legends InfoMatic Facebook page."});
    $('.info6').tipsy({fade:true, gravity:'s', fallback:"This website is mobile browser friendly!"});
    $('.info7').tipsy({fade:true, gravity:'s', fallback:"Click here to show the social media buttons."});
    $('.info8').tipsy({fade:true, gravity:'s', fallback:"Click here to hide the social media buttons."});
});

function init() {
    $(document).ready(function () {
        $("body").show("fade");
    });
}
$.fx.speeds.\u默认值为1000;
$(函数(){
$(“#制表符”).tabs();
});
社会功能(){
$(文档).ready(函数(){
$(“.info7”).hide();
美元(“#社交媒体”)。显示(“淡出”);
$(“#隐藏”).show();
});
}
函数社会隐藏(){
$(文档).ready(函数(){
$(“.info7”).show();
$(“社交媒体”)。隐藏(“褪色”);
$(“#隐藏”).hide();
});
}
//醉酒弹出代码
$(函数(){
$('.info').tipsy({fade:true,gravity:s',fallback:“使用不同的搜索引擎找到你要找的东西,这些搜索引擎搜索leagucraft.com和mobafire.com以获得你需要的信息。”);
$('.info2').tipsy({fade:true,gravity:s',fallback:“单击此按钮可在另一个窗口中打开搜索引擎框。”});
$('.info3').tipsy({fade:true,gravity:s',fallback:“您可以将您的用户名放在这里。”});
$('.info4').tipsy({fade:true,gravity:s',fallback:LeagueofLegends-InfomaticBlog.});
$('.info5').tipsy({fade:true,gravity:s',fallback:League of Legends InfoMatic Facebook page.});
$('.info6').tipsy({fade:true,gravity:s',fallback:“此网站对手机浏览器友好!”);
$('.info7').tipsy({fade:true,gravity:s',fallback:“单击此处显示社交媒体按钮”。});
$('.info8').tipsy({fade:true,gravity:s',fallback:“单击此处隐藏社交媒体按钮”。});
});
函数init(){
$(文档).ready(函数(){
$(“正文”)。显示(“褪色”);
});
}

出于某种原因,即使我将$fx.speeds作为默认值;在每个jquery函数或w/e后面,它们的速度仍然不同。

动画使用计时器来避免阻塞UI并模拟“异步事件”

如果计时器被阻止立即执行,它将被延迟到下一个可能的执行点(比所需的延迟更长)


因此,计时器并不精确

,因此没有办法使它们完全相同?@TechbyTbone是的,如果JS不忙于同时处理很多事情的话。但最有可能的是,这更像是“不”。