久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      javascript中匹配價格的正則表達式

      復制代碼 代碼如下:
      /^(d*.d{0,2}|d+).*$/

      hansir給出的測試代碼如下:

      復制代碼 代碼如下:
      <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
      <html xmlns=”http://www.w3.org/1999/xhtml”>
      <head>
      <meta http-equiv=”Content-Type” content=”text/html; charset=gb2312″ />
      <title>無標題文檔</title>
      <script type=”text/javascript”>
      function checkPrice(me){
      if(!(/^(?:d+|d+.d{0,2})$/.test(me.value))){
      me.value = me.value.replace(/^(d*.d{0,2}|d+).*$/,’$1′);
      }
      }
      </script>
      </head>
      <body>
      <input type=”text” onkeyup=”checkPrice(this);”/>
      </body>
      </html>
      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號