This then passes the function without executing it first.
Here is an example:
function addContact(id, refreshCallback) {
refreshCallback();
// You can also pass arguments if you need to
// refreshCallback(id);
}
function refreshContactList() {
alert('Hello World');
}
addContact(1, refreshContactList);
'홍익인간 프로젝트 > 참조' 카테고리의 다른 글
How to Register a DLL or OCX Files in Windows 10 via Command Prompt (0) | 2020.12.04 |
---|---|
What's the difference between Adafruit SSD1306 and SH1106? (0) | 2020.12.01 |
JavaScript Uint8Array (0) | 2020.12.01 |
port of gettimeofday in JavaScript (0) | 2020.12.01 |
Function overloading in Javascript - Best practices (0) | 2020.12.01 |