Does WeChat Mini Programs's wx.request () have any bosses who have done await packaging?

I tried to encapsulate it, but it didn"t work. It was embarrassing.

has it been encapsulated by a boss? Ask for a code to learn, hard work you sent down, thank you!

by the way, you need an encapsulated call like async/await


https://blog.csdn.net/qq_3060.

just use promise


before Mini Program even struggled with Promise. Later, it is supported that if Promise, is to be encapsulated, it is better to take the Promise route directly and encapsulate it according to the business.


isn't there a wxPromise.js? just quote it directly.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-7aaadb-2ca6b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-7aaadb-2ca6b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?