https://alexgorbatchev.com/SyntaxHighlighter/
https://tutorialzine.com/2016/10/quick-tip-accessing-the-clipboard-with-javascript
https://developer.mozilla.org/zh-CN/docs/Web/Guide/HTML/Using_data_attributes
http://ife.baidu.com/college/detail/id/6
http://www.ituring.com.cn/book/miniarticle/58552
https://www.w3.org/TR/webaudio/
https://www.zhihu.com/question/29856775/answer/57668656
https://en.wikipedia.org/wiki/Low_poly
https://www.youtube.com/watch?v=4rIEUv_Tiv4
https://soundcloud.com/low-polyy
http://alssndro.github.io/trianglify-background-generator/
https://snorpey.github.io/triangulation/
https://qrohlf.com/trianglify-generator/
https://digital.com/blog/best-low-poly-generators/
http://ieeexplore.ieee.org/document/7314186/
https://github.com/baidu-ife/ife/tree/master/2015_spring/task#
https://github.com/baidu-ife/ife/tree/master/2015_summer
http://www.cnblogs.com/Wayou/p/how-to-make-a-simple-html5-canvas-game.html
http://www.lostdecadegames.com/demos/simple_canvas_game/
http://www.lostdecadegames.com/demos/simple_canvas_game/js/game.js
http://www.lostdecadegames.com/how-to-make-a-simple-html5-canvas-game/
https://wayou.github.io/2016/06/26/mail-dev/
http://mewbies.com/how_to_easily_create_ascii_art_qr_codes.htm
https://wayou.github.io/2015/01/18/all-this/
currentColor
https://wayou.github.io/2014/12/07/css-currentColor/
<div class="container">
好好说话,有话好好说
</div>
.container{
color: #3CAADB;
border: 4px solid currentColor;
}
https://github.com/baidu-ife/ife/blob/master/2015_summer/task/vis_qihang_01.md
https://github.com/baidu-ife/ife/blob/master/2015_summer/task/ria_qihang_01.md
https://github.com/baidu-ife/ife/blob/master/2015_summer/task/mob_yangfan_01.md
mobile first
rem
&em
http://junmer.github.io/mobile-dev-get-started/#/
flexbox & flex
http://css-tricks.com/using-flexbox/
http://junmer.github.io/mobile-dev-get-started/#/4/8
http://www.w3.org/TR/css3-mediaqueries/
http://www.w3.org/TR/CSS2/media.html#media-types
https://github.com/lolmaus/breakpoint-slicer
<input type="tel">
setTimeout(function(){ window.scrollTo(0, 1); }, 0);
添加到主屏按钮
http://junmer.github.io/mobile-dev-get-started/#/4/12
chrome
TOUCH
TAP
https://github.com/ftlabs/fastclick
SCROLL
iscroll : http://iscrolljs.com/
saber-scroll : https://github.com/ecomfe/saber-scroll
GESTURES
http://static.lukew.com/TouchGestureCards.pdf
http://www.smashingmagazine.com/2012/02/21/finger-friendly-design-ideal-mobile-touchscreen-target-sizes/
tel: / sms:
HTML5 APIS (W3C)
刮一刮 (canvas)
摇一摇 (Device Orientation API)
咻咻咻 (audio)
啪啪啪 (getUserMedia)
-WEBKIT-TAP-HIGHLIGHT-COLOR: RGBA(255,255,255,0)
可以屏蔽点击元素时出现的阴影, 常用于有事件代理的父元素
IMG
@2x, @3x
感谢apple一次又次一次 重新发明像素
font icon
矢量图标, 自由变化大小, 颜色; 妈妈再也不用担心我的切图
IMG
base64
减少一个请求, 首屏图片无延迟; 图片没法gzip,而css可以
lazyload
有流量就会放肆,没流量就会克制
CSS3
合理使用渐变/圆角/阴影
别太多, 低端机 hold 不住
代替js动画
性能好, 兼容好, why not?
translate3d
开启GPU硬件加速, 提升动画渲染性能
LOCALSTORAGE
tpl
data
js
img
每个域的最大长度为5MB
避免
iframe
卡 cry, viewport 失效, iOS 宽高失效, fixed定位错误
fixed + input
什么仇什么怨
移动商桥 ios/android 分版本 hack
SPA OR MULTI PAGE
Multi Page (AJAX) SPA Isomorphic
模板 1+ 1 1
首屏数据 同步 异步 both
渲染 both client both
转场 差 优 优
SEO 优 差 优
路由 多个 多个 一致
CAN I USE
feature can i use
es5 那些年,每个库都有一个 each
JSON parsing 别了, JSON2
localstorage 存、存、存,有存,任性
canvas 和 Echarts 愉快的玩耍
GeoLocation 周围有啥好吃的
压缩合并 GZIP 14K
初始拥塞窗口数 initcwnd = 10
最大传输单元 MTU = 1500Bytes
首次传输大小 10 * 1500 ~ 14.5Kb
返回头 Response Header ~ 0.5Kb
内容 Body ~ 14Kb
http://www.smashingmagazine.com/2013/08/12/creating-high-performance-mobile-websites/
二维码
REMOTE DEBUGGING WITH CHROME FOR ANDROID(4.4+)
chrome://inspect/#devices
IOS (6.0.1+) + OS X (MOUNTAIN LION+) + SAFARI
IOS端:
设置 → Safari → 高级 → Web 检查器 → 开
OS X:
Safari → 偏好设置 → 高级 → 在菜单栏中显示开发菜单 Safari → 开发 → XXX's Phone → xxx.com
WEINRE
weinre --boundHost -all- --httpPort 8081
打开 weinre 服务页面 http://localhost:8081
在需要调试页面嵌入 target script, 注意 localhost 要替换成手机可访问的 IP, 打开调试地址, 启动开发者工具, 开始调试吧
http://people.apache.org/~pmuellr/weinre/docs/latest/
http://people.apache.org/~pmuellr/weinre/docs/latest/ChangeLog.html
https://github.com/ftlabs/fastclick
browser-sync
is much better!https://www.npmjs.com/package/browser-sync
https://www.browsersync
?
edpm start
https://highlightjs.org/
https://github.com/isagalaev/highlight.js
https://github.com/hakimel/reveal.js
http://lab.hakim.se/reveal-js/
https://github.com/baidu-ife/ife/blob/master/2015_summer/task/mob_yangfan_02.md
https://github.com/baidu-ife/ife/blob/master/2015_summer/task/mob_yangfan_02.md#移动
移动WEB开发入门
移动开发资源集合
The Mobile Web Handbook
MobileWeb 适配总结
移动前端不得不了解的html5 head 头标签
浅谈移动前端的最佳实践
touch系事件
移动端真机调试终极利器-BrowserSync
https://w3ctech.com/topic/979
https://github.com/Gaohaoyang/baidu-ife-practice
https://github.com/brianway/baidu-ife
https://zhuanlan.zhihu.com/p/25353670
https://github.com/ecomfe/echarts-liquidfill
https://ecomfe.github.io/echarts-liquidfill/example/