2017-06-06 73 views
0

我試圖在Winforms中使用webbrowser工具加載本地html頁面,但我得到了腳本錯誤消息,並且我的頁面不會加載,當我用打開的任何Web瀏覽器打開該頁面時完全沒問題!我嘗試了一些解決方案來編輯​​註冊表,但沒有修復
我的HTML頁面有JScript代碼,這是在我的網頁代碼:當瀏覽器加載html頁面時腳本錯誤

<html> 
<head> 
<script type="text/javascript"src="http://static.fusioncharts.com/code/latest/fusioncharts.js"></script> 
<script type="text/javascript"src="http://static.fusioncharts.com/code/latest/themes/fusioncharts.theme.fint.js?cacheBust=56"></script> 
<script type="text/javascript"> 
FusionCharts.ready(function() { 
var csatGauge = new FusionCharts({ 
    "type": "angulargauge", 
    "renderAt": "chart-container", 
    "width": "400", 
    "height": "250", 
    "dataFormat": "json", 
     "dataSource": { 
       "chart": { 
        "caption": "Customer Satisfaction Score", 
        "subcaption": "Last week", 
        "lowerLimit": "0", 
        "upperLimit": "100", 
        "theme": "fint" 
       }, 
       "colorRange": { 
        "color": [ 
        { 
         "minValue": "0", 
         "maxValue": "50", 
         "code": "#e44a00" 
        }, 
        { 
         "minValue": "50", 
         "maxValue": "75", 
         "code": "#f8bd19" 
        }, 
        { 
         "minValue": "75", 
         "maxValue": "100", 
         "code": "#6baa01" 
        } 
        ] 
       }, 
       "dials": { 
        "dial": [ 
        { 
         "value": "67" 
        } 
        ] 
       } 
     } 
    }); 

csatGauge.render(); 
}); 
</script> 
</head> 
<body> 
<div id="chart-container">An angular guage will load here!</div> 
</body> 
</html> 
+0

什麼是「腳本錯誤消息」? – evolutionxbox

+0

第3行有「scripttype」的拼寫錯誤。你的代碼是否正確? –

+1

錯字

回答

0

我已經成功通過將此代碼來解決這個問題:

<head> 
<meta http-equiv="X-UA-Compatible" content="IE=edge"/> 
</head> 

我仍然不知道,如果這只是需要的東西或它與註冊表的更改一起工作:solution

相關問題