Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 asp.net 按钮,我想创建一个 QUnit 测试,该测试将首先创建鼠标悬停然后显示警报。这个怎么做。我试过了
test("mouseover",function(){ $("#buttonid").mouseover(function () { alert('mouseover'); test(true,"Done"); }); });
但它不起作用。
我使用了 Qunit.trigger 事件,它解决了我的问题。
谢谢大家。