harttle.github.io icon indicating copy to clipboard operation
harttle.github.io copied to clipboard

Harttle Land 的源码和文章

Results 109 harttle.github.io issues
Sort by recently updated
recently updated
newest added

# ES6 迭代器:Iterator, Iterable 和 Generator | Harttle Land 对集合中每个元素进行处理是很常见的操作,比如数组遍历、对象的属性遍历。以往这些操作是通过 for 循环、.forEach、.map 等方式进行,在 ES6 中直接把迭代放在语言层面进行支持,同时提供定制 for...of 的机制。借由迭代器机制为 M... [https://harttle.land/2018/09/29/es6-iterators.html](https://harttle.land/2018/09/29/es6-iterators.html)

# jQuery事件:bind、delegate、on的区别 [http://harttle.land/2015/06/26/jquery-event.html](http://harttle.land/2015/06/26/jquery-event.html)

# 优秀的代码 vs. 糟糕的代码 | Harttle Land 可持续开发不仅在于项目架构设计,还与代码质量密切相关,代码的整洁度和质量成正比。—— Robert C. Martin, “Clean Code”如果你还没有发现代码质量的区别,如果你从未见过优秀的代码,或者从未见过糟糕的代码,那么本文将以直观地... [https://harttle.land/2015/04/13/elegant-and-bad.html](https://harttle.land/2015/04/13/elegant-and-bad.html)

# 常见包管理与构建工具列表 | Harttle Land 包管理和构建系统是现代的软件开发团队中必不可少的工具,也是Linux软件系统的常见组织方式。现代编程语言大多给出了自己专用的包管理和构建系统,那么本文便来总结一下小编用过的那些包管理和构建系统。JavaScript服务器端 Javascript 通常... [https://harttle.land/2015/05/29/pkg-manager.html](https://harttle.land/2015/05/29/pkg-manager.html)

# 为啥我写不出文档 | Harttle Land 当有人跟你说 “我们整理一个文档” 的时候,有没有考虑过这文档是不是没法做? 就像收到需求时可以说没法完成一样,文档也不是总是可以写出来的。 下次不想写文档时可以把这篇文章丢给他,也许这是本文最大的意义。 可能因为说话是人类的天赋,从未有人怀疑过写不出文档的可能性。 这大概就是很多文档就像废话一样没用的原因吧。 那下面 Harttle 就开始列举写好文档各种客观条件,并突出其客观性和无法抗拒性。 [https://harttle.land/2018/03/19/a-document-i-wont-give.html](https://harttle.land/2018/03/19/a-document-i-wont-give.html)

# iOS UIWebView 的 Bug 集锦 | Harttle Land Apple 在 App Store Review Guidelines中提到 iOS 软件只允许使用其 WebKit 内核,事实上就是只能选择UIWebView和WKWebView来实现 Web 浏览。而官方推荐在 iOS 8 之后的系统中使用 W... [https://harttle.land/2018/06/23/uiwebview-bugs.html](https://harttle.land/2018/06/23/uiwebview-bugs.html)

# 熟悉 Bash 快捷键来提高效率 - Harttle Land [http://harttle.land/2015/11/09/bash-shortcuts.html](http://harttle.land/2015/11/09/bash-shortcuts.html)

# 国内主要视频网站的嵌入方式 - Harttle Land [http://harttle.land/2017/02/12/embeding-video-sites.html](http://harttle.land/2017/02/12/embeding-video-sites.html)

# 异步脚本载入提高页面性能 | Harttle Land 可能很多人都知道JavaScript的载入和渲染会暂停DOM解析,但可能仍缺乏直观的体验。 本文通过几个例子详述脚本对页面渲染的影响,以及如何使用异步脚本载入策略提供页面性能和用户体验。 包括在脚本载入缓慢或错误时尽早显示整个页面内容,以及早点结束浏览器忙提示(进度条、旋转图标、状态栏等)。 DOM 渲染流程 要理解异步脚本载入的用处首先要了解浏览器渲染DOM的流程,以及各阶段用户体验的差别。 一般地,一个包含外部样式表文件和外部脚本文件的HTML载入和渲染过程是这样的: [https://harttle.land/2016/05/18/async-javascript-loading.html](https://harttle.land/2016/05/18/async-javascript-loading.html)

# Service Worker 更新机制 | Harttle Land [http://harttle.land/2017/04/10/service-worker-update.html](http://harttle.land/2017/04/10/service-worker-update.html)