当前位置:网站首页>Handwritten code bind
Handwritten code bind
2022-06-10 20:15:00 【Xiaoli Technology】
function f1(a,b,c) {
console.log('this', this);
console.log(a,b,c);
return 'this is fn1'
}
const fn = f1.bind({
x:100}, 100,200,400)
Function.prototype.mybind = function () {
// Class arrays cannot use array methods directly , Array.prototype.slice.call Convert to array form
// Array of classes ===> Convert to array
const args = Array.prototype.slice.call(arguments)
// args = [1,2,3]
// obtain this
const t = args.shift() // Remove the first parameter , It's going to change the array ==>1, The remaining [2,3 ]
const self = this
return function () {
return self.apply(t, args)
}
}
边栏推荐
- FS4060A是4.2V/3A充电IC
- 轻松学Pytorch-全卷积神经网络实现表情识别
- FS4521恒压线性充电IC
- Recent work
- 2022.05.26 (lc_1143_longest common subsequence)
- Ding Dong grabs vegetables - monitoring and pushing tools for delivery period
- During the college entrance examination this year, all examination sites were in good order, and no sensitive cases affecting safety occurred
- It is forbidden to throw away rotten software. A guide for software test engineers to advance from elementary level to advanced level will help you promote all the way
- Hm3416h buck IC chip pwm/pfm controls DC-DC buck converter
- Congratulations | Najie research group of Medical College revealed the function of junB in the process of differentiation of artificial blood progenitor cells in vitro through multi group analysis
猜你喜欢

Hm3416h buck IC chip pwm/pfm controls DC-DC buck converter

推开混合云市场大门,Lenovo xCloud的破局之道

RT-Thread Smart Win10 64位下编译环境的搭建

今年高考期间各考点秩序井然,未发生影响安全的敏感案事件

In the all digital era, how can enterprise it complete transformation?

软件定义边界(SDP)

VR全景作品中各式各样的嵌入功能是如何做到的?

HW blue team intermediate interview reply

监控易打造“准生态”格局,赋能信创“平替”

用 Plotly 绘制了几张精湛的图表,美翻了!!
随机推荐
监控易打造“准生态”格局,赋能信创“平替”
How do big factories write data analysis reports?
Standing at such a time node today, we may have a clearer understanding of the industrial Internet
VR全景如何应用在家装中?体验真实的家装效果
The annual salary of testers in large factories ranges from 300000 to 8K a month. Roast complained that the salary was too low, but he was ridiculed by netizens?
PDU session flow
站在今天这样一个时间节点上,或许对产业互联网有一个更加明晰的认识
Easily learn pytoch full convolution neural network to realize expression recognition
FPGA state machine
Harbor image pull voucher configuration
An error row size too large (& gt; 8126) occurs when MySQL's MyISAM engine switches to InnoDB
FS4521恒压线性充电IC
Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE tha
功耗开发经验分享:设计功耗大板
在VR全景中如何添加聚合热点?内容模块如何添加?
Esp8266 system environment setup
It took 2 years, 442 authors and 132 institutions! Google released the new benchmark big bench for language model evaluation. 204 tasks comprehensively evaluated the language model ability, with paper
20192407 2021-2022-2 《网络与系统攻防技术》实验八实验报告
One question to explain the past and present life of dynamic planning
FS4060A是4.2V/3A充电IC