Custom event trigger
$ event.trigger("myEventName" );
Custom event binding
The following code creates a binding to a custom event and will be executed when the custom event is triggered.
$(this).bind("myEventName",function (){
alert("myEventName triggered");
});
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn