javascript根据像素点取位置示例
复制代码 代码如下:<html><body><canvas id="canvas" width="100" height="100" style="background-color: #000;"/><script>function position (x,y){this.x = x;this.y = y;}var canvas = document.getElementById("canvas"),ctx ...