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

jQuery jQuery.readyException() 方法

jQuery 雜項(xiàng)方法jQuery 雜項(xiàng)方法

實(shí)例

傳遞接受到的錯(cuò)誤給 console.error

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


定義和用法

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

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


語法

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

jQuery 雜項(xiàng)方法jQuery 雜項(xiàng)方法

其他擴(kuò)展