1、阻止冒泡
$(document).on(' touchstart', '.modal-body', function(e) { e.stopPropagation(); //阻止冒泡 遮罩內元素不關閉(遮罩關閉) })
2、阻止點透
$(document).on(' touchend', '.modal', function (e) { e.preventDefault(); //阻止點透 });
3、盡量避開點透和冒泡事件,阻止瀏覽器的默認行為時會禁用a標簽以及nput輸入框的跳轉和聚焦,阻止冒泡不無效--處理,避開點透處理