我正在为每个项目动态创建 javascript 函数,我想稍后调用它们,代码注释中的详细信息
var i=0;
$(this).find("Tasks").each(function (i, e) {
i++;
function dynamicFunction+ i(){ }
)};
// this will result as dynamicFunction1, dynamicFunction2, dynamicFunction3 ... so on
//now i want to call them under antoher function
//so my doing this
for(var k=0;k<=i;k++)
{
dynamicFunction + k(); // this is not working
}