Attaches a callback function for a named event to any HTMLElement. The callback will be automatically removed after it has been called.
once(name, callback)'click', 'hover', etc.let foo document.getElementById('foo'); foo.once('click', function(e) { console.log(e); });