jQuery 进度条插件 NProgress
- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: http://ricostacruz.com/nprogress/
- 软件文档: https://github.com/rstacruz/nprogress/
软件介绍
应用于复杂网页的细长进度条。由 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。
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》 这本书的介绍吧!
