Mai*_*tor 2 javascript events return function wait
function myFunction() {
wait(); //what I put there?
return;
}
myFunction();
//this is an event; when its triggered I want function to resume
onSomething = function() {
myFunction.resume(); //what I put there?
}
Run Code Online (Sandbox Code Playgroud)
它只是一个本地的经验.请注意,虽然(!resume)不起作用,因为这会阻止onSomething事件发生.
| 归档时间: |
|
| 查看次数: |
5874 次 |
| 最近记录: |