08 2022 档案

摘要:var Ajax={ get: function(url, fn) { // XMLHttpRequest对象用于在后台与服务器交换数据 var xhr = new XMLHttpRequest(); xhr.open('GET', url, true); xhr.onreadystatechang 阅读全文
posted @ 2022-08-05 15:10 冷闲欧巴 阅读(132) 评论(0) 推荐(0) 编辑
摘要:// 验证输入金额 money(val) { let num = val.toString(); //先转换成字符串类型 if (num.indexOf('.') == 0) { //第一位就是 . num = '1' + num } num = num.replace(/[^\d.]/g, "") 阅读全文
posted @ 2022-08-03 17:43 冷闲欧巴 阅读(2729) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示