将click替换成
var content = document.querySelector("#vote");
content.addEventListener("touchend", function () {
vote();
});
将click替换成
var content = document.querySelector("#vote");
content.addEventListener("touchend", function () {
vote();
});
转载于:https://www.cnblogs.com/danlis/p/5707197.html