jQuery 进度条插件 NProgress

码农软件 · 软件分类 · jQuery高级页面组件 · 2019-12-30 15:29:12

软件介绍

应用于复杂网页的细长进度条。由 Google, YouTube, 和 Medium 提供灵感。

安装

添加 jQuery (1.8 or above),nprogress.js 和 nprogress.css 到你的项目中。

基本方法

简单的调用 start() 和 done() 方法来控制进度条。

NProgress.start(); 
NProgress.done(); 

当然也可以这样:

$(document).on('page:fetch', function() { NProgress.start(); }); 
$(document).on('page:load', function() { NProgress.done(); }); 

建议

  • 添加这个到有AJAX调用的地方!绑定到 jQuery ajaxStart 和 ajaxComplete 事件上。

  • 在不使用 Turbolinks/Pjax 的情况下做一个有特效的进度条事件! 绑定到  $(document).ready 和 $(window).load。

本文地址:https://codercto.com/soft/d/22290.html

Data Structures and Algorithms

Data Structures and Algorithms

Alfred V. Aho、Jeffrey D. Ullman、John E. Hopcroft / Addison Wesley / 1983-1-11 / USD 74.20

The authors' treatment of data structures in Data Structures and Algorithms is unified by an informal notion of "abstract data types," allowing readers to compare different implementations of the same......一起来看看 《Data Structures and Algorithms》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

随机密码生成器
随机密码生成器

多种字符组合密码

html转js在线工具
html转js在线工具

html转js在线工具