function WindowToCanvas(x,y){
var box=canvas.getBoundingClientRect()
return {x:Math.round(x-box.left),y:Math.round(y-box.top)}
alert("節(jié)點(diǎn)正確");}
我把a(bǔ)lert放在return前可以正常彈出
放到后面就不行了
我把l
這個(gè)return有什么錯(cuò)誤???
諸侯戲烽火
2016-12-02 08:40:30