We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/* 实现一个sum函数,接收一个arr,累加arr的项,只能使用add方法,该方法接收两个数,模拟异步请求后端返回一个相加后的值 */
function add(a,b) { return Promise.resolve(a+b) } function sum(arr) { // 思路可以二分,切成两部分beforeSum, afterSum。 }
/* 变种:如果后端设置了并发限制,一次不能请求超过三个,怎么办? */
The text was updated successfully, but these errors were encountered:
No branches or pull requests
/*
实现一个sum函数,接收一个arr,累加arr的项,只能使用add方法,该方法接收两个数,模拟异步请求后端返回一个相加后的值
*/
/*
变种:如果后端设置了并发限制,一次不能请求超过三个,怎么办?
*/
The text was updated successfully, but these errors were encountered: