Loading

Loading

通用延时loading

Constructor

new Loading(argShow, argHide, argDelayopt)

Source:
Author:
  • linjielinlin 993353454@qq.com
Example
const L = new.Loading(argShow,argHide,300)
L.show()
L.hide()
L.loading(1)
L.loading(0)
Parameters:
Name Type Attributes Default Description
argShow function

显示loading 回调

argHide function

隐藏loading 回调

argDelay number <optional>
300

argDelay 延时 ms,不宜过长,默认300

Methods

hide()

Description:
  • 隐藏loading,同loading(0)

Source:

loading(isAdd)

Description:
  • 是否增加一个请求loading,true +1,false -1

Source:
Parameters:
Name Type Default Description
isAdd boolean false

是否增加一个请求loading

show()

Description:
  • 显示loading,同loading(1)

Source: