Ask the great God a question. Well, there is a JS file, and then there is an asynchronous Ajax request in it. You need to assign the result of the request to a variable to export, and use export. However, because the Ajax request is asynchronous, the variable has no value when exporting. If you write then () in promise to export, it will not work, because export must be at the top level of the file. How does this kind of situation solve excuse me?? Urgent, this problem has been bothering us for a long time.