From 0aa5c8b0d93bbccd63811e20218ab7a67394b811 Mon Sep 17 00:00:00 2001 From: anyv <anyu@bronet.cn> Date: Tue, 4 Jun 2019 09:04:27 +0800 Subject: [PATCH] 1 --- public/themes/simpleboot3/public/assets/js/address.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/public/themes/simpleboot3/public/assets/js/address.js b/public/themes/simpleboot3/public/assets/js/address.js index e133ac5..9bf11ec 100644 --- a/public/themes/simpleboot3/public/assets/js/address.js +++ b/public/themes/simpleboot3/public/assets/js/address.js @@ -40,7 +40,8 @@ document.addEventListener('DOMContentLoaded', function() { }, false) // 删除按钮 aDel[i].index = i; - aDel[i].addEventListener('touchstart', function() { + aDel[i].addEventListener('touchstart', function(e) { + e.preventDefault(); this.innerHTML = ''; this.style.height = '0'; this.style.display = 'none'; @@ -49,12 +50,14 @@ document.addEventListener('DOMContentLoaded', function() { aDiv[this.index].style.height = '0'; aDiv[this.index].style.display = 'none'; aDiv[this.index].innerHTML = ''; - this.addEventListener('transitionend', function() { + this.addEventListener('transitionend', function(e) { + e.preventDefault(); oUl.removeChild(aLi[this.index]); }, false) }, false); aMo[i].index = i; - aMo[i].addEventListener('touchstart', function() { + aMo[i].addEventListener('touchstart', function(e) { + e.preventDefault(); // var adName = document.querySelectorAll('.ad_conMo'); $('.ad_conMo').eq(this.index).css('display', 'block').parents('li').siblings().find('.ad_conMo').css('display', 'none') -- libgit2 0.24.0