js
羽扇冰晶
承君一诺
展开
-
API--String
JavaScript String Api原创 2017-06-28 07:17:29 · 246 阅读 · 0 评论 -
js设计模式之 --工厂模式
工厂模式var People = (function () { var People = function (name, age, weight) { this.name = name; this.age = age; this.weight = weight; }; return function (name, age, weight) { return转载 2017-06-24 21:06:45 · 145 阅读 · 0 评论 -
API --Array
JavaScript Array api原创 2017-06-26 15:53:57 · 321 阅读 · 0 评论 -
JS设计模式(一)
(参考书籍 《JavaScript设计模式与开发实践》 曾探·著 人民邮电出版社)单例模式demo1var Singleton= function (name) { this.name=name; this.instance=null; }; Singleton.prototype.getName= function () { console.log(this.name); };翻译 2017-09-15 11:59:49 · 186 阅读 · 0 评论 -
rem布局
页面顶部加上这个东西 作者:minooo 链接:https://www.jianshu.com/p/b00cd3506782 來源:简书 (function (doc, win) { var docEl = doc.documentElement, resizeEvt = 'orientationchange' in window ? 'orient转载 2018-01-13 14:22:17 · 452 阅读 · 0 评论