jQuery jQuery.readyException () method
Examples
Transfer received error to console.error
jQuery. readyException = function ( error ) {
console. error ( error );};
Definition and Usage
$ .readyException () Function handles wrapped in jQuery () function in the synchronization error thrown.
Note: 1. When wrapped in jQuery () or jQuery (document) .ready (), or equivalent functions in the synchronization function throws the wrong time, this method will be triggered. By default, it throws a timeout error so that it is recorded in the console, and passed to window.onerror.
grammar
$.readyException( error )
参数 | 描述 |
---|---|
error | Error类型 包裹在jQuery()中函数抛出的一个错误 |