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.
有一个选项可以通过以下选项使 DWR AJAX 调用按顺序执行
DWREngine.setOrdered(true)
但这在全球范围内有效(适用于整个应用程序)。我只想对某些类启用此选项。可能吗?
这可以通过以下方式完成
DWREngine.beginBatch(); BatchCallClass.method1(testCallBatchingCallback1); BatchCallClass.method2(testCallBatchingCallback2); MathDelegate.multiply(8, 4, testCallBatchingCallback3); DWREngine.endBatch();
通过这种方式,您可以避免改变整个应用程序的行为。