![](/img/trans.png)
[英]VS2008 javascript debugger IE8 “there is no source code available for the current location”
[英]Javascript: “Source Code is not available for this location” msg while debugging with IE
我試圖使用IE 8開發人員工具調試一些問題。
但是在運行以下代碼之后,調試器會拋出錯誤“源代碼不適用於此位置”
window.onload = function() {
tabberAutomatic(tabberArgs);
};
這是什么意思 ?
上面的代碼是下面代碼的一部分,它基本上在文檔加載完成后運行tabberAutomatic函數:
/* This function adds tabberAutomatic to the window.onload event,
so it will run after the document has finished loading.
*/
var oldOnLoad;
if (!tabberArgs) { tabberArgs = {}; }
/* Taken from: http://simon.incutio.com/archive/2004/05/26/addLoadEvent */
oldOnLoad = window.onload;
if (typeof window.onload != 'function') {
window.onload = function() {
tabberAutomatic(tabberArgs);
};
} else {
window.onload = function() {
oldOnLoad();
tabberAutomatic(tabberArgs);
};
}
我正在嘗試調試在我之前的問題瀏覽器中解釋的問題, 顯示進度條即使在頁面加載時仍在進行中
謝謝你的投入!!
你在調試器中查看正確的文件嗎?
你試過這個,它解釋了很多: http : //msdn.microsoft.com/en-us/library/dd565625( v = vs。85).aspx
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.