随笔分类 - 软件设计
摘要:```
// var Single = function(name) {
// this.name = name;
// this.instance = null;
// };
// 静态方法
// Single.getInstance = function(name) {
// if (!this.instance) {
// this.instance = new Single(na...
阅读全文
摘要:```
/*****************************抽象类***************************/
var State = function() {};
State.prototype.pressButton = function() { throw new Error('pressButton方法必须重写');
};
/*********************...
阅读全文
摘要:```
Function.prototype.before = function(beforeFn) { var slef = this; console.log(this); return function() { console.log(this); beforeFn.apply(this, arguments); return slef.apply(this, argume...
阅读全文
摘要:前端项目开发 项目技术要求 平台支持: 团队协作: 研发架构: 架构 & 技术剖析 架构设计 研发流程 性能优化 架构分层设计 页面层 业务组件 公共组件 基础模块 项目构建
阅读全文
摘要:拷贝,分深拷贝和浅拷贝。 在我们了解过的框架中,jquery的$.extend()可以根据第一个传入的参数区分拷贝类型; jQuery.extend( target [, object1 ] [, objectN ] ); deep 类型: Boolean 如果是true,合并成为递归(又叫做深拷贝
阅读全文

浙公网安备 33010602011771号