06 2022 档案
摘要: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
阅读全文
摘要:封装XMLHttpRequest对象拦截方法 function proxyRequest() { const _xhr = window.XMLHttpRequest; const proxies = []; const events = {}; const cache = { _this: nul
阅读全文