问题标签 [jquery-3]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
91 问题
0
投票
1
回答
481
浏览
javascript - Async/Await 与 JQuery 文档 READY
它可以与 JQuery 一起使用,document.addEventListener("DOMContentLoaded", async () => {})
但我很好奇它可以与 JQuery 一起使用。
而且,我想要 Async/Await,而不是Promise,因为稍后我将需要 Promise 回调之外的变量。