Questions tagged «callback»

11
ඇමතුමක් ලබා ගැනීමේදී නිවැරදි `මෙය` වෙත ප්‍රවේශ වන්නේ කෙසේද?
මට සිදුවීම් හසුරුවන්නෙකු ලියාපදිංචි කරන ඉදිකිරීම් ශ්‍රිතයක් ඇත: function MyConstructor(data, transport) { this.data = data; transport.on('data', function () { alert(this.data); }); } // Mock transport object var transport = { on: function(event, callback) { setTimeout(callback, 1000); } }; // called as var obj = new MyConstructor('foo', transport); කේත ස්නිපටය ධාවනය …
1449 javascript  callback  this 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.