# LoadSubpackageTask wx.loadSubpackage(Object object)

Start from base library version 2.1.0. Please remaining backward compatible.

Triggers subpackage loading. For more information, see Subpackage Loading.

# Parameters

# Object object

Attribute Type Default Required Description
name function Yes The name of the subpackage, which can be name or root.
success function Yes The callback event that the subpackage loading succeeds.
fail function Yes The callback event that the subpackage loading fails.
complete function Yes The callback event that the subpackage loading completed (always executed whether the loading succeeds or fails)

# Return Values

# LoadSubpackageTask

Loads subpackage task instances to obtain the subpackage loading status.

点击咨询小助手