Posts
All the articles I've posted.
面向对象编程 OOP
Published: at 08:00:::tip 面向对象编程(Object-Oriented Programming) ::: 这样将我们将要用到的属性和方法都封装到抽象的Book类里面了,当使用功能方法时,不能直接使用Book类,需要使用new关键字来实例化新的对象。
设计模式开篇
Published: at 08:00Singleton 单例模式 Abstract Factory 抽象工厂模式 Builder 生成器模式 Factory Method 工厂方法模式 Prototype 原型模式
Generator 函数详解
Published: at 08:00Generator函数是ES6提供的一种异步变成解决方案,语法行为与传统函数完全不同。 Generator函数有多种理解角度,语法上,可以将Generator函数理解为状态机,封装了多个内部状态。
ES6 函数的扩展
Published: at 08:00- 函数参数的默认值 ```js // demo1 // ES5 function log(x, y) { y = y || 'World'; console.log(x, y);
排序算法详解
Published: at 08:00```js /** * 冒泡排序 * 入门级排序 * * 2018年09月16日23:14:17 */ let a = [123, 3, 3, 0, 31, 23, -12, 898, -2, 4, 5, 1, 2];
Drag & Drop API
Published: at 08:00<iframe height="265" style="width: 100%;" scrolling="no" title="js-basic-drag" src="https://codepen.io/llccing/embed/GRRePmw?height=265&theme-id=defau
Cookie 详解
Published: at 08:00一个cookie就是存储在用户浏览器中的一小段文本文件。cookie是纯文本的形式。浏览器将其储存并且根据一系列规则在每个请求中将该信息返回致服务器。web服务器可以用cookie来识别用户(定向投放广告)。多数需要登录的站点通通常会在认证通过后设置一个cookie,之后通过这个cookie做校验。
计算盒模型的各种尺寸
Published: at 08:00上来一张图 offsetWidth/offsetHeight 返回元素的宽度/高度,不包含滚动内容的宽度/高度包括元素的边框、内边距和滚动条。 offsetLeft/offsetTop
AJAX 详解
Published: at 08:00Asynchronous JavaScript + XML, while not a technology in itself, is a term coined in 2005 by Jesse James Garrett, that describes a "new" approach to u
arguments 对象
Published: at 08:00箭头函数中不可用,可以使用arguments对象在函数中引用函数的参数。 <iframe height="265" style="width: 100%;" scrolling="no" title="js-basic-argumetns" src="https://codepen.io/llcci