会员中心     
首页 > 资料专栏 > HRM > 人力资源 > 招聘管理 > IT招聘学习第二部分:进阶篇(30题).PDF

IT招聘学习第二部分:进阶篇(30题).PDF

宿州之窗
V 实名认证
内容提供者
热门搜索
IT
资料大小:793KB(压缩后)
文档格式:PDF
资料语言:中文版/英文版/日文版
解压密码:m448
更新时间:2025/3/13(发布于安徽)

类型:金牌资料
积分:--
推荐:升级会员

   点此下载 ==>> 点击下载文档


“IT招聘学习第二部分:进阶篇(30题).PDF”第1页图片 图片预览结束,如需查阅完整内容,请下载文档!
文本描述
2019/9/5 第?部分:进阶篇 | FE-Interview JS b() // call b console.log(a) // undefined var a = Hello world function b() { console.log(call b) } JS undefined b() // call b second function b() { console.log(call b fist) } function b() { blog.poetries.top/FE-Interview-Questions/improve/#?、js 1/27 2019/9/5 第?部分:进阶篇 | FE-Interview console.log(call b second) } var b = Hello world var let let let let call apply this call apply let a = { value: 1 } function getValue(name, age) { console.log(name) console.log(age) console.log(this.value) } getValue.call(a, yck, 24) getValue.apply(a, [yck, 24]) bind bind window this blog.poetries.top/FE-Interview-Questions/improve/#?、js 2/27 2019/9/5 第?部分:进阶篇 | FE-Interview Function.prototype.myBind = function (context) { if (typeof this !== function) { throw new TypeError(Error) } var _this = this var args = [...arguments].slice(1) // return function F() { // new F() if (this instanceof F) { return new _this(...args, ...arguments) } return _this.apply(context, args.concat(...arguments)) } } Function.prototype.myCall = function (context) { var context = context || window // context // getValue.call(a, yck, 24) => a.fn = getValue context.fn = this // context var args = [...arguments].slice(1) // getValue.call(a, yck, 24) => a.fn(yck, 24) var result = context.fn(...args) // fn delete context.fn return result } Function.prototype.myApply = function (context) { var context = con