6. Small program api classification

event listener

Start with on, listen to an event trigger, for example: wx.WindowResize event

Synchronize

The one ending with Sync is synchronization, which can be obtained directly through the return value of the function, for example: wx.setStorageSync

asynchronous

Need to receive call results through functions, for example: wx.request, need to receive different types of return results through success, fail, complete

おすすめ

転載: blog.csdn.net/rotating_windmill/article/details/132391499