[英]Script error when webbrowser loading html page
我正在嘗試使用 Winforms 中的 webbrowser 工具加載本地 html 頁面,但我收到腳本錯誤消息並且我的頁面無法加載,當我使用任何網絡瀏覽器打開該頁面時,它打開時完全沒有問題! 我嘗試了一些解決方案作為編輯注冊表但沒有修復。
我的 html 頁面有 jscript 代碼,這是我頁面中的代碼:
<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>
我設法通過添加以下代碼來解決它:
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
</head>
我仍然不確定這是否是唯一需要的東西,或者它適用於注冊表的更改: 解決方案
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.