随笔分类 -  js/es6

摘要:/* 方法一 */ function addCssByLink(url) { var link=document.createElement("link"); link.setAttribute("rel", "stylesheet"); link.setAttribute("type", "tex 阅读全文
posted @ 2023-01-12 11:21 iceCream-Lling 阅读(143) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>判断当前页面是否在微信浏览器中打开</title> <script type="text/javascript"> var ua = navigator.userAgent.toL 阅读全文
posted @ 2023-01-12 11:16 iceCream-Lling 阅读(305) 评论(0) 推荐(0)
摘要:手机号码: /^1[34578]\d$/ /^(13[0-9]|14[579]|15[0-9]|16[6]|17[0135678]|18[0-9]|19[89])[0-9]{8}$/ 密码: 密码长度为6~20位,由数字、字母或符号中最少两种组成 /(?!^\d+$)(?!^[A-Za-z]+$)( 阅读全文
posted @ 2019-09-30 14:20 iceCream-Lling 阅读(1365) 评论(0) 推荐(0)
摘要:1. 复制数组 2. 添加元素 3. 把类数组对象转换成数组 阅读全文
posted @ 2019-09-17 14:23 iceCream-Lling 阅读(165) 评论(0) 推荐(0)