我正在尝试在同一页面上集成 FusionCharts 和 Aloha 编辑器。由于 Aloha 依赖于 jquery,我假设这就是导致某种冲突的原因,但我无法解决它,我整天都在努力解决它。任何帮助,将不胜感激。谢谢
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Getting Started with Aloha Editor</title>
<link rel="stylesheet" href="index.css" type="text/css">
<link rel="stylesheet" href="aloha.css" type="text/css">
<script src="require.js"></script>
<script src="jquery-1.7.2.js"></script>
<script type="text/javascript" src="FusionCharts/FusionCharts.js"></script>
<script src="aloha.js" data-aloha-plugins="common/ui,common/format,common/highlighteditables,common/link"></script>
</head>
<body>
<div id="main">
<div id="content"><p>Getting started with Aloha Editor!</p></div>
<div id="chartContainer">FusionCharts XT will load here!</div>
</div>
<script type="text/javascript">
Aloha.ready( function() {
Aloha.jQuery('#content').aloha();
});
var myChart = new FusionCharts("Column3D", "myChartId", "400", "300");
myChart.setXMLData("<chart caption='Weekly Sales Summary' xAxisName='Week' " +
"yAxisName='Sales' numberPrefix='$'>" +
"<set label='Week 1' value='14400' />" +
"<set label='Week 2' value='19600' />" +
"<set label='Week 3' value='24000' />" +
"<set label='Week 4' value='15700' />" +
"</chart>");
myChart.render("chartContainer");
</script>
</body>
</html>