Stop Javascript Function execution from another Function

后端 未结 3 1685
生来不讨喜
生来不讨喜 2021-02-14 05:14

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:30

    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.

提交回复
热议问题