首页 > 解决方案 > Call web api post method in a loop

问题描述

I need to send a big json array to web service. The array contain 20000 records. I hope the best method to send the large data to API is part by part. So I'm planning to send 1000 records at a time. In the success method of the async post method I'm calling the same method. I'll check the limit in the success method before recurring the function

But my question is this is a good approach. Is there any better method than this?

Thanks in advance.

标签: angularjs

解决方案


推荐阅读