• Find
    Great Courses
  • Create
    a Course
  • About
  • Blog
  • Help
  • Login
  • Home
  • › Learn › JavaScript表单验证密码 javascript表单验证密码
course image draft course

Participate


JavaScript表单验证密码

JavaScript表单验证密码是检查输入框是否为有效的密码,
密码只允许由ascii组成,
此函数只在修改或注册密码时使用。
也就是说一切不是ascii组成的字符串都不能通过验证。
具体函数checkValidPasswd请看下面的演示代码

function checkValidPasswd(str){
      var reg = /^[x00-x7f]+$/;
      if (! reg.test(str)){
       return false;
      }
      if (str.length < 6 || str.length > 16){
       return false;
      }
      return true;
}

Tags

  • javascript表单验证密码
View Full Description
  • Under Development
  • Kind
    Javascript表单验证密码
  • Signup
    Non-moderated signup
  • Chat
    #p2pu-980-javascript
  • Updates
    3
  • Organizers
    1
  • Participants
    0
  • Followers
    0
See All »

People


zhmm (organizer)

Tasks


No tasks have been added.

External Links


No external links have been added.
    zhmm
    zhmm at JavaScript表单验证密码
    added 具体描述.
    23 Apr 2012 via courses.p2pu.org

P2PU Schools:
School of Social Innovation

SOCIAL INNOVATION

School of the Mathematical Future

MATHEMATICAL FUTURE

School of Webcraft

WEBCRAFT

School of Ed

SCHOOL OF EDUCATION

School of Open

SCHOOL OF OPEN

What is P2PU?

The Peer 2 Peer University is a grassroots open education project that organizes learning outside of institutional walls and gives learners recognition for their achievements. P2PU creates a model for lifelong learning alongside traditional formal higher education. Leveraging the internet and educational materials openly available online, P2PU enables high-quality low-cost education opportunities.

Connect With Us


  • FacebookF

  • TwitterT

  • Get Involved

  • Blog

  • Send us an email

Some of Our Supporters

William and Flora Hewlett Foundation Shuttleworth Foundation View all of our supporters

globe icon
  • English
  • Nederlands
  • 中文
  • Español
  • Svenska
  • עברית
  • 한국의
  • (more)
  • Help
  • About P2PU
  • Forum
  • Found a Bug?
  • Creative Commons
  • Share-Alike
  • Privacy Guidelines
  • Terms of Use
CC Icons