摘要: 1.Object.keys方法 2.filter和indexOf方法 3.sort和splice方法 参考:https://segmentfault.com/a/1190000004605229 http://www.toutiao.com/i6356017394137170434/?tt_from 阅读全文
posted @ 2016-12-07 16:08 全玉 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 获取所有query string function queryStringAll(src){ src = src || location.search || location.hash; var reg = /[?&]([^?&=]+)=([^?&=]*)/g, res, obj = {}; whi 阅读全文
posted @ 2016-12-07 15:12 全玉 阅读(1048) 评论(0) 推荐(0) 编辑
摘要: ctrl + k, m 切换语言 ctrl + shift + k 删除一行 ctrl + g 跳到指定行 ctrl + d 选中单词,多次按下,可选中多个同名单词,使用多光标 ctrl + shift + v 预览markdown ctrl + p 快速搜索文件 crtl + shit + p 显 阅读全文
posted @ 2016-12-07 13:22 全玉 阅读(694) 评论(0) 推荐(0) 编辑
摘要: str.match(reg) 1.reg没有全局标志g,match将只执行一次匹配。匹配成功返回一个数组,arr = [$0,$1,$2,...,index,str],匹配失败返回null。 arr中的参数说明,$0是匹配文本,$i是第i个子表达式匹配的文本,index是$0在stringObjec 阅读全文
posted @ 2016-12-07 11:40 全玉 阅读(166) 评论(0) 推荐(0) 编辑