详细问题描述
[内容]
var btn = document.getElementById("submit");
var btn2 =$("#submit");
//监听点击事件
mui('body').on('tap',"#submit",function () {
console.log("tap event trigger");
});
//触发submit按钮的点击事件
mui.trigger(btn2,'tap');
btn可以触发,btn2无法触发报:Uncaught TypeError: a.dispatchEvent is not a function at js/mui.min.js:6
[mui版本]3.7.0
大队委 (作者)
好的,谢谢
2017-12-11 16:51