var ctx = $("#myChart").get(0).getContext("2d");
其中$(“#myChart”)代表< figure id =“myChart”class =“chart”>< / figure>
抛出此错误
Uncaught TypeError: Object #<HTMLElement> has no method 'getContext'
<canvas id="myChart" class="chart"></canvas>