久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

IE9 中的控制臺未定義錯誤

Console is undefined error in IE9(IE9 中的控制臺未定義錯誤)
本文介紹了IE9 中的控制臺未定義錯誤的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我有一個顯示 SVG 圖形的圖形頁面.我正在使用 Raphael 圖形框架.該頁面在 Firefox 中正確顯示,此外,如果 F12 開發人員工具在 IE9 中設置為打開",則它可以正常工作.如果 F12 開發者模式關閉并且應用程序在清除瀏覽器緩存的情況下啟動(模擬普通用戶),則該地圖顯示 IE9 中的部分數據(它是一個節點鏈接圖,它僅顯示 12 個節點中的一個子節點).

I have a graphics page which shows SVG graphics. I am using Raphael graphics framework. The page displays properly in Firefox, Also if the F12 developer tools is set 'on' in IE9 it works fine. The map show partial data (its a node link diagram and it shows only one child node out of 12 nodes) in IE9 if the F12 developer mode is set off and application is started with browser cache cleared (simulating a general user).

更新:我保持??調試器打開并顯示錯誤控制臺未定義".所以我認為這不是圖形渲染問題,而且我沒有明確使用控制臺,也許思維導圖js在內部使用它,但是如何再次擺脫這個問題?

Update: I kept the Debugger on and Shows me the error "Console is undefined". So I think its not a graphics rendering issue, and also I am not using the console explicitly, maybe the mindmap js is using it internally, but how to again get rid of this issue?

更新:我發現了問題并注釋掉了 js 文件中的 console.log 條目.

Update: I found the issue and commented out the console.log entries from the js files.

謝謝.

推薦答案

可能您的代碼或您正在調用的代碼正在使用 console.log 或類似的東西.

Probably your code or the code you are calling is using console.log or something like it.

您可以在全局范圍內添加此代碼來為 IE(或任何不支持它的瀏覽器)創建一個虛擬包裝器.在調用任何其他庫之前,只需將以下代碼放在某處:

You could add this code in the global scope to create a dummy wrapper for IE (or any browser that doesn't support it). Just put the following code somewhere before you call any other libraries:

if(!(window.console && console.log)) {
  console = {
    log: function(){},
    debug: function(){},
    info: function(){},
    warn: function(){},
    error: function(){}
  };
}

這篇關于IE9 中的控制臺未定義錯誤的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How to fix BrowserWindow is not a constructor error when creating child window in Electron renderer process(在 Electron 渲染器進程中創建子窗口時如何修復 BrowserWindow 不是構造函數錯誤) - IT屋-程序員軟件開發技術
mainWindow.loadURL(quot;https://localhost:3000/quot;) show white screen on Electron app(mainWindow.loadURL(https://localhost:3000/) 在 Electron 應用程序上顯示白屏)
Electron webContents executeJavaScript : Cannot execute script on second on loadURL(Electron webContents executeJavaScript:無法在第二個 loadURL 上執行腳本)
how to use electron browser window inside components in angular-cli?(如何在angular-cli的組件內使用電子瀏覽器窗口?)
ElectronJS - sharing redux store between windows?(ElectronJS - 在 Windows 之間共享 redux 存儲?)
How to access camera/webcamera inside electron app?(如何在電子應用程序中訪問相機/網絡攝像頭?)
主站蜘蛛池模板: 久久精品国产v日韩v亚洲 | 91素人| 久久精品国产久精国产 | 久久精品国产一区 | 北条麻妃99精品青青久久 | 欧美亚洲在线 | 久草福利 | 美女视频黄色的 | 日韩在线一区二区 | 精品亚洲一区二区三区四区五区高 | 91久久精品 | 久久成人综合 | 九九国产| 毛片免费在线 | 日韩欧美中文在线 | 最新av中文字幕 | www.国产精品| 91久久国产综合久久 | 国产特级毛片aaaaaa | 精品一区二区三区免费视频 | 国产日韩欧美一区二区在线播放 | 国产精品视频一区二区三区不卡 | 国产1区| 色资源在线 | 日韩一区二区三区在线观看 | 日韩在线欧美 | 久久综合九色综合欧美狠狠 | 日本天天操 | 国产日韩精品一区 | h在线看 | 国产三级日本三级 | 国产激情在线 | 色视频成人在线观看免 | 精品国产伦一区二区三区观看方式 | 一a一片一级一片啪啪 | 欧美精品欧美精品系列 | 精品国产乱码久久久久久闺蜜 | 午夜激情一区 | 欧洲一区二区三区 | 亚洲视频国产 | 日本在线播放 |