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.
我正在尝试在 EXTJS 中进行组提交。我知道您可以将 store.add() 与模型数组一起使用,但它只是多次调用 POST Web 服务。有谁知道最佳实践,或者这是否可能?我在后端使用 JPA/hibernate。
当然是,我不知道您的商店模型配置,但您可以通过配置来完成
autoSync: false, batchUpdateMode: 'complete'
在您的商店中,并且:
batchActions: true
在您的代理上,并sync()在您完成将记录添加到商店后调用。
sync()