loading插件
简单易用的 loading 效果
API
代码演示
| 属性 | 说明 | 类型 | 默认值 | 
|---|---|---|---|
| display | 显示/隐藏 | Boolean | - | 
| type | 选择 css3或gif动画 | Boolean | true(css3) | 
| animateHtml | 使用 css3 动画时所需的 html 片段,type 为 true 时有效 | String | <div class="ball-clip-rotate"><div></div></div> | 
| src | 使用 gif 时传入所需的图片路径,type 为 false 时有效 | String | http://img.yi114.com/201571121314_382.gif | 
| shadow | 遮罩层显示与隐藏 | Boolean | true | 
使用方法
// 简式调用,在javascript中,1 == true , 0 == false
$.loading(true,true) === $.loading(1,1);
// 高级调用
$.loading({
  display: true,
  type: true
});
// 变更 loading 作用域
$(selector).loading(true,true);
$(selector).loading({
  display: true,
  type: true
});如果您发现本页有什么问题,欢迎来提单 Issue : https://github.com/Janking/infinite-ui/issues