Technical summary of El expression, brought on with ah

if (clientArea.replace (/ [\ d +.] / ig ,""). length> 0) (
alert ("area only for the number!");
return false;
)

/ / Mobile phone number: 13912345678
function isMobil (s)
(
var mobilePatrn = / ^ [0-9] (11) $ /;
var telPatrn = /^[+]{ 0,1) (\ d) (1,4) [] (0,1 }([-]{ 0,1) ((\ d) | []) (1, 12 })+$/;
if (! mobilePatrn.exec (s) | |! telPatrn.exec (s)) (
alert ("phone number format error");
return false;
)

else (
return true;
)
)
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of Technical summary of El expression, brought on with ah

  • JavaEye chat client (Ruby + Shoes Edition)

    Originally, all want to write, with further announcements, but because of the new contacts Shoes, encountered a lot of questions, I hope everyone pointing. Usage: 1. Download by loading shoes (http://shoooes.net/), so almost Supported platforms 2. Ey ...

  • java abnormal Help

    Arithmetic exception classes: ArithmeticExecption Null pointer exception classes: NullPointerException Abnormal type cast: ClassCastException Negative abnormal array subscript: NegativeArrayException Cross-border abnormal array subscript: ArrayIndexOutOfB

  • js closure on

    Understanding of JavaScript closures To become advanced JavaScript programmers, it is necessary to understand the closure. In this paper, ECMA 262 specification explain the closure of the internal working mechanism for JavaScript programmers understanding

  • ruby Usage

    When the assignment operator symbol has & & & & rear will be the value of the premise that the value of the expression is true, if false, then the user will have false

  • Ruby compiler at install Leopard on the problems encountered and solutions

    Do not want to use leopard on ruby, so the compiler is installed on their own, the following are the installation and use of problem encountered in several Because I have already put leopard on a directory on the ruby deleted, so can not run ruby, of ...

  • Understanding of JavaScript closures

    Understanding of JavaScript closures To become advanced JavaScript programmers, it is necessary to understand the closure. In this paper, ECMA 262 specification explain the closure of the internal working mechanism for JavaScript programmers understanding

  • FreeImage.h: No such file or directory

    Issue Solution

  • Depth understanding of Javascript closure (closure)

    Recently, online access to a lot of Javascript closure (closure) of relevant information and writing are very academic and professional. For beginners to understand let alone closure, and even the language describing it is very difficult to understan ...

  • Ruby Rails system calls the use of Ping

    Want to use call system commands under RoR, the general exec and system and the syscall Want to use in Rails, the call ping command The most common are ruby support Ping usage is as follows: Ping contains routines to test for the reachability of remote ho

  • Depth understanding of the eval function in javascript

    http://wanyij.blog.51cto.com/46570/43794 In this paper, the discovery of an appropriate title is not so easy, huh, huh, so in this note under the first two purposes of this article: (1) introduction of the eval function in javascript usage (2) how to func

blog comments powered by Disqus
Recent
Recent Entries
Tag Cloud
Random Entries