📅  最后修改于: 2022-03-11 15:01:30.700000             🧑  作者: Mango
// tasks is your array
tasks.forEach((element,i) => {
setTimeout(
function(){
//the work you want to perform
}
, i * 300);
});