當(dāng)前位置:首頁
> html5獲取對象上的事件
html5獲取對象上的事件(javascript獲取對象)
cxtfillRectrectx,recty,rectw,recth繪制矩形 canvasonclick=functione給canvas添加點擊事件 e=eevent獲取事件對象 獲取事件在canvas中發(fā)生的位置 var x=eclientXcanvasoffsetLeftvar y=eclie...