let ar = [1,2,3]
//
// 1[2[3]]
let ar = [1,2,3]
//
// 1[2[3]]
it can be done by using the methods built into the array:
ar.reduceRight((r, x) => r ? [x, r] : [x], 0)
Previous: How to judge whether it is in a certain color range after obtaining the color value of canvas
Next: After vue-cli3.0 is packaged, there is nothing on the page.
vue and react use ssr (server-side rendering) to solve seo and first-screen rendering solutions. this extends the problem. 80% of the data after http or other network requests is duplicated, and http caching is also a big problem? how do you solve the...