01 2013 档案

摘要:在没有使用coffee-script之前,我们写类是这样写的,感觉会有点繁锁://-------------抽象类形状--------------function Shape(edges) { this.edges = edges;}Shape.prototype.getArea = function() { return -1;}Shape.prototype.getEdges = function() { return this.edges;}//--------------三角形----------------function Triangle(bottom, heig... 阅读全文
posted @ 2013-01-29 15:23 水之原 阅读(2640) 评论(1) 推荐(0) 编辑
摘要:// Copyright 2009-2012 by contributors, MIT License// vim: ts=4 sts=4 sw=4 expandtab // Module systems magic dance(function (definition) { // RequireJS if (typeof define == "function") { define(definition); // YUI3 } else if (typeof YUI == "function") { YUI.add("es5-sham&quo 阅读全文
posted @ 2013-01-14 21:41 水之原 阅读(4254) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示