我试图在Winforms中使用webbrowser工具加载本地html页面,但是我收到了脚本错误消息并且我的页面无法加载,当我使用任何Web浏览器打开该页面时它打开没有问题所有!我尝试了一些解决方案作为编辑注册表,但没有修复 我的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>
答案 0 :(得分:0)
我通过添加此代码设法解决了这个问题:
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
</head>
我仍然不确定这是否只是需要的事情,或者它是否适用于注册管理机构的变更:solution