I have one small js code to fix one think on iOS devices, but I don't know how to write that code with touchend event at Dartlang. How to convert that js code to dartlang?
JS Code:
(function(l){var i,s={touchend:function(){}};for(i in s)l.addEventListener(i,s)})(document);
import 'dart:html';
main() {
var listeners = {
'touchend': (e) {},
};
listeners.forEach((type, listener) {
document.addEventListener(type, listener);
});
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.