随笔分类 -  面试题

摘要:function myDeepClone(o){ const result = new (Object.getPrototypeOf(o)).constructor for(k in o){ if(typeof o[k] 'object' && o[k] !== null){ result[k] = 阅读全文
posted @ 2023-06-02 19:06 睡成蛆 阅读(62) 评论(0) 推荐(0)
摘要:个人练习,代码如下: function myInstanceOf(o,type){ if(typeof o !== 'object' || o null){ return false } if(Object.getPrototypeOf(o) type.prototype){ return true 阅读全文
posted @ 2023-06-02 18:44 睡成蛆 阅读(32) 评论(0) 推荐(0)
摘要:个人练习,代码如下: function myTypeof(o,type){ const types = { 'string': true, 'number': true, 'symbol': true, 'bigint': true, 'function': true, 'boolean': tru 阅读全文
posted @ 2023-05-29 22:38 睡成蛆 阅读(79) 评论(0) 推荐(0)
摘要:面试遇到的,面试题 面试时只回答出,rotate+hidden的方式 自己想出了两种,rotate+hidden和linear-gradient border和clip-path的方式借鉴自网络, border 点击查看代码 <!DOCTYPE html> <html lang="en"> <hea 阅读全文
posted @ 2022-10-11 21:45 睡成蛆 阅读(83) 评论(0) 推荐(0)