Saturday 21 September 2019

JavaScript function wait until Callback return value

Is there any way I can make my js function wait until the callback return value. I need this because the rest part of my js function have to use the returned value from the callback.

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...