вы можете использовать
$('.buttons').on('click', 'button', function(){
// your magic goes here
});
или
$('.buttons').delegate('button', 'click', function() {
// your magic goes here
});
, эти два метода эквивалентны, но имеют другой порядок параметров.
см .: Событие делегата jQuery
Как вернуть признак impl, заключенный в Result?
blockquote>Путем вернуть признак impl, заключенный в
Result
:[119 ] См. Также:use std::{ fs::File, io::{self, Read}, }; fn test() -> io::Result<impl Read> { let f = File::open("test.txt")?; Ok(f) }