随笔分类 - 面试题
摘要:function myDeepClone(o){ const result = new (Object.getPrototypeOf(o)).constructor for(k in o){ if(typeof o[k] 'object' && o[k] !== null){ result[k] =
阅读全文
摘要:个人练习,代码如下: function myInstanceOf(o,type){ if(typeof o !== 'object' || o null){ return false } if(Object.getPrototypeOf(o) type.prototype){ return true
阅读全文
摘要:个人练习,代码如下: function myTypeof(o,type){ const types = { 'string': true, 'number': true, 'symbol': true, 'bigint': true, 'function': true, 'boolean': tru
阅读全文
摘要:面试遇到的,面试题 面试时只回答出,rotate+hidden的方式 自己想出了两种,rotate+hidden和linear-gradient border和clip-path的方式借鉴自网络, border 点击查看代码 <!DOCTYPE html> <html lang="en"> <hea
阅读全文

浙公网安备 33010602011771号