FusionCharts ID重复

1、今天在做项目时,有关FusionCharts柱状图的,调试的过程中,我发现IE浏览器出现FusionCharts ID重复。

      具体的消息如下:

消息:#25081843:IECompatibility() Chart Id is same as a JavaScript variable name.Variable naming error.

          Please use unique name for Chart JS Variable.Chart-id and Container id

行:15

字符:6400

代码:0

URI:http://localhost:8080/Chart/JavaScript/FusionCharts.js      


方法:

$.ajax({
     type:"POST",
     url:"areaType.action",
     dataType:"json",
     data:{
            "areaCode":areaCode,
            "statisDate":"statisDate"
     },
     success:function(data){
             if(null != FusionCharts.items["exceptionCodeFCS"])
             {
                     CollectGarbage();
                     fusionCharts = new FusionCharts("../Pie2D.swf","exceptionCodeFCS","100%","400",0,1);
              }
              else
              {
                    fusionCharts = FusionCharts.items["exceptionCodeFCS"];
               }
               fusionCharts.setJSONData(undefined != $("#jsonData").val()?$("#jsonData").val():"");
              fusionCharts.render("exceptionCodeViewDiv");
    }
});       


你可能感兴趣的:(JavaScript,FusionCharts,id重复)