随笔分类 -  js

摘要:解析指定 url 地址,返回其中的 query 参数对象,可以不考虑执行环境的兼容性。 如: http://www.wacai.com/login?a=1&b=2&a=3&c 返回: var str='http://www.wacai.com/login?a=1&b=2&a=3&c&a=4&c=5' 阅读全文
posted @ 2017-08-24 13:33 cherish3 阅读(134) 评论(0) 推荐(0)
摘要:null和undefined的区别? null是一个表示"无"的对象,转为数值时为0 undefined是一个表示"无"的原始值,转为数值时为NaN undefined表示 “缺少值”,就是此处应该有一个值,但是还没有定义。典型用法是: 1. 变量被声明了,但没有赋值时,就等于 undefined 阅读全文
posted @ 2017-08-23 20:25 cherish3 阅读(397) 评论(0) 推荐(0)
摘要:1、事件绑定的兼容性写法 阅读全文
posted @ 2017-08-03 22:17 cherish3 阅读(185) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2016-10-06 08:38 cherish3 阅读(2) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2016-09-27 11:18 cherish3 阅读(0) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2016-09-27 11:17 cherish3 阅读(1) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2016-09-22 09:06 cherish3 阅读(0) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2016-09-21 08:37 cherish3 阅读(0) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2016-09-21 08:35 cherish3 阅读(2) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2016-09-21 08:33 cherish3 阅读(0) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2016-09-20 08:39 cherish3 阅读(3) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2016-09-19 08:49 cherish3 阅读(0) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2016-09-09 08:38 cherish3 阅读(0) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2016-09-08 08:36 cherish3 阅读(0) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2016-09-08 08:35 cherish3 阅读(4) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2016-09-07 08:34 cherish3 阅读(1) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2016-09-06 08:24 cherish3 阅读(1) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2016-09-05 08:31 cherish3 阅读(1) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2016-09-04 10:30 cherish3 阅读(3) 评论(0) 推荐(0)