金額輸入框的規則----微信小程序+js+jqeury

昨天寫小程序項目,在輸入金額的框上也只是簡單的爲 input 設置了"type=‘number’"; 並設置了一定的限制 money.value = money.value.replace(".","$#$").replace(/\./g, "").replace("$#$", ".");//只允許存在一個點 money.value = money.value.replace(/^(\-)*(\d
相關文章
相關標籤/搜索