each function renders a different class, after the result, so it needs to be executed in turn, and some parameters need to be passed, similar to the following structure. How to ensure that the number of case2,case executed after case1 execution is uncertain?
let case1 = function(){
console.log("case11");
}
let case2 = function(){
console.log("case22");
}
let case3 = function(){
console.log("case33");
}
const caseList = [
case1,case2,case3,....
];