我得到Uncaught TypeError: Property 'setTimeout' of object [object DOMWindow] is not a function
儘管Mozilla Firefox和Internet Explorer中的函數運行良好。但Chrome正在創造這樣的問題。當我試圖找出相應行上的代碼時。我在庫中有以下功能。Chrome中未捕獲的類型錯誤
// Animations created synchronously will run synchronously
function createFxNow() {
setTimeout(clearFxNow, 0); // Line where I am getting error.
return (fxNow = jQuery.now());
}
function clearFxNow() {
fxNow = undefined;
}
檢查你的代碼是否有類似'setTimeout = something'的字符串 – c69