前端面试题整理——HTML/CSS 2024-08-04 20:16:35 赞 (0) 相关推荐 前端面试题整理——手写简易jquery class jQuery { constructor(selector) { const result = document.querySelectorAll(selector) console.lo ... 前端面试题整理——原型和原型链 Class的使用: // 父类 class People { constructor(name) { this.name = name } eat() { console.log(`${this.na ... 前端面试题整理——深拷贝 const obj = { a: 100, b: { b1: [1, 2, 3], b2: 'string' }, c: ['a', 'b', 'c'] } /* * 没做深拷贝的效果 const o ... 前端面试题整理——手写bind函数 var arr = [1,2,3,4,5] console.log(arr.slice(1,4)) console.log(arr) Function.prototype.bind1 = functi ... 前端面试题整理——作用域和闭包 什么是闭包,闭包的表现形式: // 作用域应用的特殊情况,有两种表现: // 函数作为参数被传递 // 函数作为返回值被返回 // 函数作为返回值 function create() { let a ... 前端面试题整理——手写AJAX <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ... 前端面试题整理——VUE双向绑定原理 VUE2.0和3.0数据双向绑定的原理,并说出其区别. 代码: <!DOCTYPE html> <html lang="en"> <head> ... 前端面试题整理——Javascript基础 常见值类型: let a; //undefined let s = 'abc'; let n = 100; let b = true; let sb = Symbol('s'); let nn = N ... 前端面试题之CSS 两种盒模型 盒模型分为W3C的标准模型和IE模型 盒模型又称为框模型,包含了元素内容(content).内边距(padding).外边距(margin).边框(border) 如图: W3C的标准模型 ...