【Javascript】ES5 完美方案实现类的继承
基础模式function Parent(name) { this.name = name; } Parent.prototype.sayHello = function () { ...
基础模式function Parent(name) { this.name = name; } Parent.prototype.sayHello = function () { ...
import * as qs from './qs.js' const isPlainObject = function isPlainObject(obj) { let proto...
JS Function function createAnimation(option) { var current = 0; var from = option.from; ...
JS Function function curry() { var fn = arguments[0]; var args = Array.prototype.slice.ca...
1. 函数防抖JS Function /** * 函数防抖 * @param {function} func 一段时间后,要调用的函数 * @param {number} wait 等待的...