//点击其他地方,隐藏目标区域
function closeSelect() {
  $(document).mouseup(function (e) {
  //node是需要隐藏的区域
  var node = $(".modal-body div.selectDiv").find(".ms-drop");
  if (!node.is(e.target) && node.has(e.target).length === 0) {
    node.css("display", "none");
    }
  });
}

 

相关文章:

  • 2021-12-17
  • 2021-08-14
猜你喜欢
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2021-08-29
  • 2021-10-01
相关资源
相似解决方案