会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
︶ㄣ鳯躌氷瀚
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
···
10
下一页
2018年3月2日
解决数组塌陷的两种方式
摘要: 解决数组塌陷的两种方式: 【1】i-- 【2】将数组倒着循环遍历
阅读全文
posted @ 2018-03-02 20:50 ︶ㄣ鳯躌氷瀚
阅读(507)
评论(0)
推荐(0)
2018年3月1日
e.currentTarget
摘要: e.currentTarget绑定事件的元素,不是触发事件的元素 触发事件的元素e.target
阅读全文
posted @ 2018-03-01 19:11 ︶ㄣ鳯躌氷瀚
阅读(152)
评论(0)
推荐(0)
css中隐式的改变元素的宽度用margin-right 负的可以使容器变宽
摘要: 应用:想让list比app多出一个元素的右边距,只需要给list的margin-right一个负值
阅读全文
posted @ 2018-03-01 19:04 ︶ㄣ鳯躌氷瀚
阅读(239)
评论(0)
推荐(0)
2018年2月28日
backbone中 toJSON在js中的等价方法 JSON.parse(JSON.stringify())
摘要:
阅读全文
posted @ 2018-02-28 01:46 ︶ㄣ鳯躌氷瀚
阅读(251)
评论(0)
推荐(0)
2018年2月27日
构造函数实例化 new 的时候没有参数加不加括号都可以
摘要: 【转】 http://test.xdnote.com/chapter-javascript/strange2.html function A(){ this.init(arguments); return 0; } A.prototype={ init:function(args){ console
阅读全文
posted @ 2018-02-27 22:18 ︶ㄣ鳯躌氷瀚
阅读(354)
评论(0)
推荐(0)
2018年2月10日
只用两个变量,不借助第三个变量来交换值
摘要: 【1】法一: var a = 5; var b = 3; a = a + b; b = a - b; a = a - b; 【2】法二 14、论如何最佳的让两个整数交换数值 常规办法: var a=1,b=2; a += b; b = a - b; a -= b; 缺点也很明显,整型数据溢出,对于3
阅读全文
posted @ 2018-02-10 14:58 ︶ㄣ鳯躌氷瀚
阅读(203)
评论(0)
推荐(0)
2018年2月7日
decodeURIComponent(str)
摘要: decodeURIComponent(str)
阅读全文
posted @ 2018-02-07 16:18 ︶ㄣ鳯躌氷瀚
阅读(108)
评论(0)
推荐(0)
2018年2月1日
Object.prototype.toString.call(target)
摘要:
阅读全文
posted @ 2018-02-01 00:26 ︶ㄣ鳯躌氷瀚
阅读(155)
评论(0)
推荐(0)
2018年1月31日
fn 传参特殊情况 + 包装类型
摘要: // 定义一个迭代器 function each(arr, fn){ for(var i = 0; i < arr.length; i++){ fn(i, arr[i]); } } each(arr, function(index, value){ console.log(index, value)
阅读全文
posted @ 2018-01-31 21:32 ︶ㄣ鳯躌氷瀚
阅读(123)
评论(0)
推荐(0)
2018年1月30日
typeof返回的结果必定是字符串
摘要: typeof返回的结果必定是字符串 字符串可以用parseInt来转换成数字 也可以在前面添加 +
阅读全文
posted @ 2018-01-30 21:09 ︶ㄣ鳯躌氷瀚
阅读(171)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
10
下一页
公告