![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript原理
qq_33761266
这个作者很懒,什么都没留下…
展开
-
instanceOf实现
//A是否是B的实例const instanceOf(A,B){ let p1=A; while(p1){ if(p1.__proto__===B.prototype){ return true } p1=p1.__proto__; } return false;}原创 2021-11-03 16:56:29 · 95 阅读 · 0 评论 -
javascript预编译
这里写自定义目录标题js预编译js预编译原创 2018-10-25 23:10:35 · 124 阅读 · 0 评论 -
JS this关键字
原创 2018-11-06 22:00:35 · 103 阅读 · 0 评论 -
js单例模式
原创 2018-11-07 22:24:26 · 164 阅读 · 0 评论 -
js工厂模式
.原创 2018-11-07 23:01:51 · 1205 阅读 · 0 评论 -
js bind call 和 apply 实现原理
Function.prototype.newBind = function (target) { var self = this; var args = [].slice.call(arguments, 1) var temp = function () { }; var f = function () { ...原创 2019-05-17 23:38:36 · 398 阅读 · 1 评论 -
js函数柯里化
function add(a, b, c, d) { return a + b + c + d; } function f1(fn) { var _arg = [].slice.call(arguments, 1); return function () { var newArg = _arg.concat(...原创 2019-05-18 13:49:10 · 252 阅读 · 0 评论