This question has already been answered:
var hh = 0; funcvoid(param1, param2, function () { hh = param1 + param2; }); alert(hh); As a result, 0 is stored in hh, what should be done to write param1 + param2 ??
This question has already been answered:
var hh = 0; funcvoid(param1, param2, function () { hh = param1 + param2; }); alert(hh); As a result, 0 is stored in hh, what should be done to write param1 + param2 ??
A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .
Source: https://ru.stackoverflow.com/questions/596215/
All Articles