摘要:
const ipt = document.querySelector('#ipt') ipt.oninput = (e) => { const v = (e.target.value + '').replace(/\D/g, '') const r = v.replace(/^(\d{3})/, ' 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style> body { background: #f5f5fe; } .container { width: 400px; margin: 150px au 阅读全文