学习笔记(二)

bug 集锦:
1. fadeIn() 竟然会影响到 swiper 的初始化
2. 苹果机 new Date(d) 时 d 不能采用 xxxx-xx-xx 格式,必须分开成多个参数
3. display:flex 被覆盖后再使用 jquery 显示动画将显示 display: block
4. 苹果机有滚动反弹,与 position: fixed 一起玩耍时很可怕

新知识点:
1. <meta name="format-detection" content="telephone=no" /> 真的有效
2. pushState/replaceState 无刷新网页地址更换
3. devicemotion 摇一摇
4. ['cube', 'coverflow', 'flip'].indexOf(string) 字符串中检索是否存在前者
5. animationstart(开始) / animationiteration(重复触发) / animationend(结束)
6. JSON.parse() 字符串转json / JSON.stringify() json转字符串
7. typeof arr;("object") / arr instanceof Array;(true) / arr.constructor();([])
8. Array.prototype.push.apply(array1, array2); 合并两个数组
9. foo == 10 && doSomething(); // is the same thing as if (foo == 10) doSomething();
foo == 5 || doSomething(); // is the same thing as if (foo != 5) doSomething();
10.function clone(object) {function x(){};x.prototype = object;return new x();} 克隆
11.http://www.cnblogs.com/beyond-succeed/archive/2016/08/29/5817683.html
事件冒泡||事件捕捉 | stopPropagation() 阻止冒泡m | jquery 是事件冒泡
12.DOMActivate,DOMFocusin,DOMAttrModified,DOMCharacterDataModified,DOMNodeInserted,DOMNodeInsertedIntoDocument,DOMNodeRemoved,DOMNodeRemovedFromDocument,DOMSubtreeModified,DOMContentLoaded
13.eval(strJSON); | strJSON.parseJSON(); | JSON.parse(strJSON) 的区别
14.unicode-bidi: bidi-override; + direction: rtl; 文本从右向左
15.Object.keys() 获取对象的键组成数组,Object.values() 尚在开发中
16.$.cssHooks 和 $.cssNumber 拓展 css 属性
17.$.queue 可将函数放入队列,产生回调的感觉,个人认为就是为了代码优美

楷模:
https://developer.mozilla.org/zh-CN/docs/Web/CSS
http://www.kancloud.cn/jsfront/month/186760
http://download.csdn.net/album/detail/1111/1/1
http://www.w3cplus.com/animation/web-animation-resources.html

posted on 2016-09-08 11:02  永恒的浪荡时光  阅读(191)  评论(0编辑  收藏  举报

导航