error
UK[ˈerə(r)] US[ˈɛrɚ]
n. Error, negligence; [Law] mistrial, violation of law; [Number] error
jquery error() method syntax
Function:When an element encounters an error (not loaded correctly), an error event occurs. The error() method triggers an error event, or specifies a function to run when an error event occurs. This method is a shorthand for bind('error', handler).
Trigger the error event syntax:$(selector).error()
##Bind the function to the error event syntax:$ (selector).error(function)
Parameters:
jquery error() method example
Run instance »
Click the "Run instance" button to view the online instance
- About us Disclaimer Sitemap
- php.cn:Public welfare online PHP training,Help PHP learners grow quickly!
Description | |
Optional. Specifies the function to be run when an error event occurs. |