的jQuery的我想要顯示從迷你圖實際上是一間酒吧graph.I我無法查看it.Also我是新來的jquery一個jquery,無法顯示火花
$("#sparkline").sparkline([5,6,7,2,0,4,2,4], {
type: 'bar',
height: '300',
barWidth: 20,
barSpacing: 10,
barColor: '#615c5a',
nullColor: '#3366cc '});
這是頁面的代碼,也就是與jQuery兼容1.10
<!DOCTYPE html>
<html>
<head>
<script src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.10.1.min.js"></script>
<script>
$("#sparkline").sparkline([5,6,7,2,0,4,2,4], {
type: 'bar',
height: '300',
barWidth: 20,
barSpacing: 10,
barColor: '#615c5a',
nullColor: '#3366cc '});
</script>
</head>
<body>
<div id ="sparkline" />
</body>
</html>
附加組件我已經產生火花的代碼
http://omnipotent.net/jquery.sparkline/#s-news
[鏈接](http://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_lib_microsoft)我試過了,但我仍然看不到代碼 – atari400
@ user1853614,我已更新我的答案,現在看看 – Cherniv
謝謝先生!這真的有幫助。肯定會在15投一次:) – atari400