# LoadSubpackageTask wx.loadSubpackage(Object object)
Start from base library version 2.1.0. Please remaining backward compatible.
Trigger sub-package loading; see Sub-package Loading for details
# Parameter
# Object object
property | type | default value | optional | description | version |
---|---|---|---|---|---|
name | function | yes | The name of the sub-package, which can be filled with name or root | ||
success | function | yes | The sub-package loading success callback event | ||
fail | function | yes | The sub-package loading failure callback event | ||
complete | function | yes | The sub-package loading end callback events (It will be executed whether the load succeeds or fails) |
# Return
# LoadSubpackageTask
Load sub-package task instances to get sub-package load states