摘要: 1 public abstract class Template { 2 3 private List<String> sequence = new ArrayList<String>(); 4 5 /** 6 * 头部 7 */ 8 public abstract void head(); 9 1 阅读全文
posted @ 2019-08-06 18:15 海上翱翔 阅读(133) 评论(0) 推荐(0)
摘要: 1 public interface IClothing { 2 3 /** 4 * 开始制作 5 */ 6 void start(); 7 /** 8 * 上色 9 */ 10 void colour(); 11 /** 12 * 打包 13 */ 14 void pack(); 15 } 1 p 阅读全文
posted @ 2019-07-23 14:08 海上翱翔 阅读(355) 评论(0) 推荐(0)
摘要: 1 public class Singleton { 2 private static Singleton instance; 3 private Singleton (){} 4 public static Singleton getInstance() { 5 if (instance == n 阅读全文
posted @ 2019-07-22 19:09 海上翱翔 阅读(132) 评论(0) 推荐(0)
摘要: 一.设计模式简介 设计模式我相信大家都听说过的,而且我也相信很多人在工作中都用到了。 设计模式就是我们日常开发过程中,在不同的业务场景下对应不同的需求积累出来的扩展性好,内聚性搞,耦合性底,可重用性高的一种编码模式。 二.设计模式分类 设计模式分为三类 1.创建型 单例模式 工厂模式 抽象工厂模式 建造者模式 原型模式... 阅读全文
posted @ 2019-07-22 17:49 海上翱翔 阅读(138) 评论(0) 推荐(0)
摘要: var canvas = document.getElementById("canvas"); var cxt = canvas.getContext("2d"); //画线(用线画三角型) cxt.strokeStyle = "red";//线作色 cxt.lineTo(59, 59);//线的起 阅读全文
posted @ 2019-02-01 15:22 海上翱翔 阅读(359) 评论(0) 推荐(0)