Tag:Machine number

  • JS advanced case: validation form

    Time:2020-8-7

    Case: validation form   Document <span style=”background-color: #f5f5f5; color: #800000;”> body </span><span style=”background-color: #f5f5f5; color: #000000;”>{</span><span style=”background-color: #f5f5f5; color: #ff0000;”> background</span><span style=”background-color: #f5f5f5; color: #000000;”>:</span><span style=”background-color: #f5f5f5; color: #0000ff;”> #ccc</span><span style=”background-color: #f5f5f5; color: #000000;”>;</span> <span style=”background-color: #f5f5f5; color: #000000;”>}</span><span style=”background-color: #f5f5f5; color: #800000;”> label </span><span style=”background-color: #f5f5f5; color: #000000;”>{</span><span style=”background-color: #f5f5f5; color: #ff0000;”> width</span><span style=”background-color: […]

  • JS advanced – regular expression practice ID number

    Time:2020-3-24

    Write regular expression, write regular expression according to string to match Experience: 1. Find rules 2. Don’t pursue perfection   Regular expression of ID card 15 or 18 ([1-9][0-9]{14})|([1-9][0-9]{16}[0-9xX]) ([1-9][0-9]{14})([0-9]{2}[0-9xX])?     1. Regular expression of telephone number 010-19876754 0431-87123490 [0-9]{3,4}[-][0-9]{8} \d{3,4}[-]\d{8} \d{3,4}[-][0-9]{8}     2. Regular expression of QQ number [1-9][0-9]{4,10} \d{5,11}      […]

  • JS advanced – Case: validation form

    Time:2020-3-17

    Case: validation form   Document <span style=”background-color: #f5f5f5; color: #800000;”> body </span><span style=”background-color: #f5f5f5; color: #000000;”>{</span><span style=”background-color: #f5f5f5; color: #ff0000;”> background</span><span style=”background-color: #f5f5f5; color: #000000;”>:</span><span style=”background-color: #f5f5f5; color: #0000ff;”> #ccc</span><span style=”background-color: #f5f5f5; color: #000000;”>;</span> <span style=”background-color: #f5f5f5; color: #000000;”>}</span><span style=”background-color: #f5f5f5; color: #800000;”> label </span><span style=”background-color: #f5f5f5; color: #000000;”>{</span><span style=”background-color: #f5f5f5; color: #ff0000;”> width</span><span style=”background-color: […]