Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 698 Bytes

README.md

File metadata and controls

51 lines (32 loc) · 698 Bytes

loader


spm version Build Status Coverage Status

简单的加载提示


Usage

var loader = require('loader');
new loader({
   target:'#loader-box',
   number: 4,
   speed: 100
}).show();

选项

target

目标容器

number

加载bar的数量

speed

速度,单位为ms

style.width

单个bar宽度

style.height

单个bar高度

方法

show

显示加载条

hide

隐藏加载条