摘要: http://sporto.github.io/blog/2012/12/09/callbacks-listeners-promises/ 或 http://www.ruanyifeng.com/blog/2012/12/asynchronous%EF%BC%BFjavascript.html 当用 Javascript 处理异步(asynchronous )时,你可以使用很多工具。本文说明四个异步的方法和工具,以及它们的优势:回调(Callbacks)、监听(Listeners)、流程控制库(Control Flow Libraries)和 Promises。 示例场景 ... 阅读全文
posted @ 2013-07-27 23:49 船长&CAP 阅读(686) 评论(0) 推荐(0) 编辑
摘要: https://developer.mozilla.org/zh-CN/docs/JavaScript/Guide/Inheritance_and_the_prototype_chain 本文内容 引入 构造函数创建对象 Object.create创建对象 极简主义法 封装 继承 私有属性和私有方法 数据共享 引入 近 20 年前,也就是 Javascript 诞生时(1995 年),它只是一种简单的网页脚本语言,像如果你忘记填写用户名,就跳出一个警告,当... 阅读全文
posted @ 2013-07-27 01:04 船长&CAP 阅读(962) 评论(0) 推荐(1) 编辑
免费流量统计软件