js2
Kasekale
这个作者很懒,什么都没留下…
展开
-
2017.12.11.10
<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title></head><body><script> /* let str = "/(((\d)+)\D)+(\d+)\D+(\d+)/" 为何没加g原创 2017-12-19 20:35:19 · 167 阅读 · 0 评论 -
2017-12-11回调函数的参数
<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title></head><body><script> /* 回调函数的参数(默认) $0 -> 每次匹配到的字符 $1 -> 这些个匹配字原创 2017-12-19 16:09:32 · 312 阅读 · 0 评论 -
20171211-search
<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title></head><body><script> /* search (""||//) ->查找 if(找到了){返回值是index}if(没找到){返回值是-1}原创 2017-12-14 20:13:37 · 195 阅读 · 0 评论 -
20171211-test
<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title></head><body><script> /* test:/规则/.test(字符串),返回值是个布尔值. */ console.dir(/a/); let ar原创 2017-12-14 20:12:46 · 156 阅读 · 0 评论 -
20171211-RegExp转义符
<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title></head><body><script> /* 正则: 简写:/匹配的规则/ 标准:new RegExp new RegExp(//||"","原创 2017-12-14 20:11:20 · 1097 阅读 · 0 评论 -
20171211-number
<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title></head><body><script> let str = "1ty2yu34uhj342hj5671j34jiuhkk4hfhwr7483rfhuewbu23"; let arr = [];原创 2017-12-14 20:08:54 · 200 阅读 · 0 评论 -
20171020.03
<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <style> div{ width: 100px; height: 100px; background: red;翻译 2017-12-21 20:10:18 · 303 阅读 · 0 评论 -
20171020.02
<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <style> div{ width: 300px; height: 300px; border:1px solid翻译 2017-12-21 17:47:54 · 237 阅读 · 0 评论 -
20171020.01
<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title></head><body> <input type="text" id="num1"> <input type="text" id="num2"> <input type="button翻译 2017-12-21 17:11:11 · 236 阅读 · 0 评论 -
20171215.05
<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title></head><body><script> /* 原型: prototype: 类似于css中的class */ function P翻译 2017-12-20 19:53:15 · 202 阅读 · 0 评论 -
2017121504
<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title></head><body><script> /* 面向对象: 把复用性比较高 1.抽象 -> 抽离出翻译 2017-12-20 19:41:57 · 207 阅读 · 0 评论 -
20171215.03
<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title></head><body><script> /* 在面向对象中,一般遇到首字母大写就说这个函数是构造函数 new 一元运算符翻译 2017-12-20 15:11:56 · 149 阅读 · 0 评论 -
201712.15.02
<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title></head><body><script> /* 面向对象:极为重要 面向过程: 关注点 功能是如何实现翻译 2017-12-20 14:48:38 · 247 阅读 · 0 评论 -
20171213.3
元字符:+字母 <!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title></head><body><script> /* \d 一个数字 \D 一个非数字 \s 一个空格 \S翻译 2017-12-20 12:47:44 · 208 阅读 · 0 评论 -
2017.1213.2
<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title></head><body> <input type="text"id ="txt"> <button id ="btn">看看是不是QQ号</button><script> /*翻译 2017-12-20 09:52:17 · 243 阅读 · 0 评论 -
20171213.1
<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title></head><body><script> /* 找到a开头,c结尾,中间为1或2或3 [] 范围 */ // let str = "a1ca2ca3ca4c翻译 2017-12-19 21:42:54 · 205 阅读 · 0 评论 -
2017.12.11.9
<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title></head><body><script> /* let str = "2017-12-11"; "2017.12.11"; "201翻译 2017-12-19 16:40:25 · 206 阅读 · 0 评论