Javascript callback - how to return the result?

后端 未结 3 869
别跟我提以往
别跟我提以往 2020-12-10 17:55

I am struggling to totally understand callbacks and i am stumbling at the final hurdle.

Within JS I am calling a function which then calls a PHP function using a doj

3条回答
  •  长情又很酷
    2020-12-10 18:35

    The short answer is that you can't.

    Do whatever you want to do with the data in the callback or functions you call from the callback. You can't return anything from it.

提交回复
热议问题