shenanheng / sah.github.io Goto Github PK
View Code? Open in Web Editor NEW个人博客
个人博客
https://shenah.cn/2018/01/26/web/js/obj/apply-call-bind/
apply、call、bind的用法apply
参数一: 改变this的指向(不传参,默认指代当前环境的this)
参数二: 数组,但是实际的话他会以...arguments呈现(也就是说会把数组转化为参数列表)['a',&
https://shenah.cn/2018/06/07/designpattern/dai-li-mo-shi/
代理模式原理 为一个对象提供一个代用品或占位符,以便控制对它的访问。(替身对象对用户的请求做出一些处理后再把请求转发给本体对象)
保护代理 用于对象应该有不同访问权限的情况
虚拟代理 需要代理者帮用户做一些请求(有时自己的一些请求的代
https://shenah.cn/2018/06/08/designpattern/ce-lue-mo-shi/
策略模式原理 定义一系列的算法,把它们一个个封装起来,并且使它们可以相互替换
用途 根据实际的场景,运用对应的策略
组成
策略类 => 封装了具体的算法,并负责具体的计算过程
环境类 => Context 接受客户的请求,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.