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
<div id="selector"><h3>标题</h3><p>描述</p></div>
touch.bind("#selector", "tap", function(){ //点击标题 console.log(this); // this -> <h3>标题</h3> }); 这个结果明显不是想要的
var e = d.call(a.target, a);
还有一个小小的问题,手册说: touch.trigger(element, type) element element或string 元素对象或选择器
并不能接收 string,只能接收 element
try { "undefined" != typeof CustomEvent ? (d = new CustomEvent(b, e), a && a.dispatchEvent(d)) : (d = document.createEvent("CustomEvent"), d.initCustomEvent(b, !0, !0, c), a && a.dispatchEvent(d)) } catch(f) { console.warn("Touch.js is not supported by environment.") } 明显没有处理
The text was updated successfully, but these errors were encountered:
No branches or pull requests
<div id="selector"><h3>标题</h3><p>描述</p></div>
touch.bind("#selector", "tap", function(){
//点击标题
console.log(this); // this -> <h3>标题</h3>
});
这个结果明显不是想要的
var e = d.call(a.target, a);
还有一个小小的问题,手册说:
touch.trigger(element, type)
element element或string 元素对象或选择器
并不能接收 string,只能接收 element
try {
"undefined" != typeof CustomEvent ? (d = new CustomEvent(b, e), a && a.dispatchEvent(d)) : (d = document.createEvent("CustomEvent"), d.initCustomEvent(b, !0, !0, c), a && a.dispatchEvent(d))
} catch(f) {
console.warn("Touch.js is not supported by environment.")
}
明显没有处理
The text was updated successfully, but these errors were encountered: