如何模拟鼠标向下并随后在aspx页面的画布hmtl5部分上进行鼠标向上事件?模拟鼠标在画布上向下和向上html5页面
我在网上搜索,发现这个......但我不能将它关联到我的画布html5元素,任何人都可以帮忙吗?
dispatchMouseEvent(element, 'mouseover', true, true);
dispatchMouseEvent(element, 'mousedown', true, true);
dispatchMouseEvent(element, 'click', true, true);
dispatchMouseEvent(element, 'mouseup', true, true);
您可能会发现[this](http://stackoverflow.com/a/4176116/2264512)之一。请阅读完整的答案。 'dispatchMouseEvent'是这里用户定义的函数。 –