ste*_*nmm 3 html javascript jquery jqplot
这是文件的全部内容:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>jqPlot Examples</title>
<!--[if IE]><script language="javascript" type="text/javascript" src="excanvas.js"></script><![endif]-->
<script language="javascript" type="text/javascript" src="../jqtouch-1_0_b/jqtouch/jquery.1.3.2.min.js"></script>
<script language="javascript" type="text/javascript" src="../javascript/jquery.jqplot.min.js"></script>
<link rel="stylesheet" type="text/css" href="../javascript/jquery.jqplot.css" />
</head>
<body>
<h1>jqPlot Examples</h1>
<script id="source" language="javascript" type="text/javascript">
$.jqplot('chartdiv', [[[1, 2],[3,5.12],[5,13.1],[7,33.6],[9,85.9],[11,219.9]]]);
</script>
div<br>
<div id="chartdiv" style="height:400px;width:300px; "></div>
div<br>
</body>
</html>
<html>
Run Code Online (Sandbox Code Playgroud)
这是我在FF,chrome,IE中看到的:
jqPlot示例
DIV
DIV
我在Apache错误日志中看到没有错误.我知道所有.js文件都可以从html访问.有没有人知道为什么这可能不起作用?
小智 5
用这段代码替换你的绘图脚本,看看.
<SCRIPT LANGUAGE="JavaScript">
$(function() { var plot1 = $.jqplot('chartdiv', [[[1,2],[3,5.12],[5,13.1],[7,33.6],[9,85.9],[11,219.9]]]); })
</SCRIPT>
Run Code Online (Sandbox Code Playgroud)
还要检查你的.js文件是否在适当的位置.
| 归档时间: |
|
| 查看次数: |
12877 次 |
| 最近记录: |