We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
先创建个
before(function () { testDiv = $('<div>'); $('body').append(testDiv); testDiv.on('touchstart',function () { console.log('touchstart') }) });
来个简单的
it('tap', function () { eventSimulate.simulate(testDiv.get(0), 'touchstart'); });
结果:没有触发console.log
console.log
The text was updated successfully, but these errors were encountered:
测试时,需要浏览器支持此事件才能模拟。
Sorry, something went wrong.
No branches or pull requests
先创建个
来个简单的
结果:没有触发
console.log
The text was updated successfully, but these errors were encountered: