<script type="text/javascript">
function draw() {
var canvas = document.getElementById('Background');
if (canvas.getContext) {
var ctx = canvas.getContext('2d');
ctx.lineWidth = 0.4
ctx.strokeRect(15, 135, 240, 40)
所以我希望鼠标在这个简单的线条矩形上时变成食指。我该怎么做?
hover(( 方法指定当鼠标指针悬停在所选元素上时要运行的两个函数。
此方法会同时触发鼠标输入和鼠标离开事件。 语法: $(selector(.hover(inFunction,outFunction(
https://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_event_hover