中文字幕一区二区人妻电影,亚洲av无码一区二区乱子伦as ,亚洲精品无码永久在线观看,亚洲成aⅴ人片久青草影院按摩,亚洲黑人巨大videos

jQuery jQuery.readyException() 方法

jQuery 雜項方法jQuery 雜項方法

實例

傳遞接受到的錯誤給 console.error

jQuery.readyException = function( error ) { console.error( error ); };


定義和用法

$.readyException() 函數(shù)處理包裹在jQuery()中函數(shù)同步拋出的錯誤。

注意:1. 當(dāng)包裹在jQuery()或jQuery( document ).ready(),或等效的函數(shù)中的函數(shù)同步拋出錯誤的時候,這個方法就會被觸發(fā)。默認情況下,它超時拋出錯誤以便它被記錄在控制臺中,并傳遞給window.onerror。


語法

$.readyException( error )
參數(shù) 描述
error Error類型 包裹在jQuery()中函數(shù)拋出的一個錯誤

jQuery 雜項方法jQuery 雜項方法

其他擴展