# jquery.number-run.js **Repository Path**: postbird/jquery.number-run.js ## Basic Information - **Project Name**: jquery.number-run.js - **Description**: jquery 数字滚动插件 - **Primary Language**: HTML - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-12-14 - **Last Updated**: 2026-01-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # jquery.number-run.js > jquery.number-run.js 数字滚动插件 ## 在线演示: [https://postbird.gitee.io/jquery.number-run.js](https://postbird.gitee.io/jquery.number-run.js) ## 使用方式: ### 示例一: ```html 3276.32 ``` ```javascript $("#number-example-1").numberRun({ attr: true }); ``` ### 示例二: ```html 3276 ``` ```javascript $("#number-example-2").numberRun({ attr: true }); ``` ### 示例三: ```html 3276 ``` ```javascript $("#number-example-3").numberRun({ number:3276, speed:40 }); ``` ### 示例四: ```html 3276 ``` ```javascript $("#number-example-4").numberRun({ number: 3276, speed: 60, callback:function(){ alert("滚动完成,number = 3276,speed = 20"); } }); ``` ## 参数说明:
| 参数名 | 参数说明 |
|---|---|
| attr | 是否从 html 的 attr 中获取参数,如果选择是,则 html 中必须有
number 和
speed 两个 attr
|
| number | 最终需要滚动的数字 可以从 html中获取,也可以配置,支持小数 |
| speed | 滚动的速度,speed,滚动速度越慢 |
| callback | 回调函数,滚动完成后出发该方法 |