What I saw when I saw the error message was zepto.min.js. Generally speaking, it should be caused by the callbacks and promises modules not being loaded (unlike jQuery, which is a single file, zepto is scattered in many modules. If you use the builder website to select Once the zepto.min generated by the module is fine, there will be no problem, and most of the zeptos that provide direct download or CDN are the version with only 5 modules by default).
Thank you for the invitation. The brother upstairs has already said it very well. For http requests, axios.js is a better library that directly supports .then(). Let’s talk about the topic of extension. The current trend is to use async / await as much as possible, and promise is gradually withdrawing from the stage.
What is your jQuery version? Here in SF it can be written like this. No problem.
Your sticker is Zepto
I tried it and it didn’t work.
jQuery’s ajax API cannot be directly then. You can wrap it as a Promise and do it like this:
Thank you for the invitation.
What I saw when I saw the error message was
zepto.min.js
. Generally speaking, it should be caused by the callbacks and promises modules not being loaded (unlike jQuery, which is a single file, zepto is scattered in many modules. If you use the builder website to select Once the zepto.min generated by the module is fine, there will be no problem, and most of the zeptos that provide direct download or CDN are the version with only 5 modules by default).Thank you for the invitation. The brother upstairs has already said it very well. For http requests, axios.js is a better library that directly supports .then().
Let’s talk about the topic of extension. The current trend is to use async / await as much as possible, and promise is gradually withdrawing from the stage.