如何使用pace.js增加进度条加载时间 [英] how to increase progress bar load time using pace.js

查看:65
本文介绍了如何使用pace.js增加进度条加载时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用pace.js插件,现在我想增加进度条加载时间,默认情况下加载速度很快。



i试试这段代码但是它将无法工作..



I am using pace.js plugin, now i want to increase the progress bar load time, by default it is loading fast.

i try this code but it will not working..

$(function() {
paceOptions={
    initialRate:0.7,
    minTime:1750,
    maxProgressPerFrame:1,
    ghostTime: 120000
}
});

推荐答案

(function(){
paceOptions = {
initialRate:< span class =code-digit> 0 。 7
minTime: 1750
maxProgressPerFrame: 1
ghostTime: 120000
}
});
(function() { paceOptions={ initialRate:0.7, minTime:1750, maxProgressPerFrame:1, ghostTime: 120000 } });


这篇关于如何使用pace.js增加进度条加载时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆