Stop Javascript Function execution from another Function

后端 未结 3 1392
野的像风
野的像风 2021-02-14 04:41

Is there any way to stop the execution of a called function from another function?

I have following code:-

function MainFunction() { //a long code that r         


        
3条回答
  •  北恋
    北恋 (楼主)
    2021-02-14 05:23

    I think you are trying to stop the execution of other function call from a function. if yes then you need to put the called function inside the condition so that you can control the execution.

    if my understanding is not correct please elaborate what you want to do , mens why want to stop the execution of the function.

提交回复
热议问题