判断是否为强口令

  function ifruo(value) {
    var m = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}$/;
    if (m.test(value)) {
      return true;
    } else {
      return false;
    }
  }
posted @ 2019-11-29 10:21  刘浩2561179983  阅读(239)  评论(0编辑  收藏  举报