2017-06-06 71 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

相关问题