Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 JSOM SharePoint 调用从列表中获取一些值。一旦我得到回调中的值,我想在线程的 main 方法中执行代码。我怎么做?
它是 javascript,回调在主线程中执行。
我怀疑这不是您的实际问题,并且您在调用和/或闭包的异步性质方面遇到了一些问题。如果是这样,请扩展您的问题以提供有关您的确切问题的更多信息。