Min's blog

I choose to see the beauties in the world.

导航

2017年2月27日

摘要: 1.scope变量范围 key: var后面连等,只有第一个变量有var 严格模式下则为 undefined 2.给对象添加自定义方法或函数 key: prototype 3.声明提升(Hoisting) key: 函数和变量声明预解析 4.this指向 key: 一般指向调用对象 定时器中为win 阅读全文

posted @ 2017-02-27 15:04 Min77 阅读(54) 评论(0) 推荐(0) 编辑

摘要: 1. 解析URL对象 字符串拆分,使用indexOf,split function queryUrl(URL) { let obj = {}; if (URL.indexOf('?') < 0) return obj; let arg = URL.split("?")[1].split("&"); 阅读全文

posted @ 2017-02-27 14:44 Min77 阅读(85) 评论(0) 推荐(0) 编辑