首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
课程
专栏·文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
在线笔面试、雇主品牌宣传
登录
/
注册
tanzhouzhou
获赞
38
粉丝
0
关注
0
看过 TA
4
中南林业科技大学涉外学院
2020
web前端
IP属地:广东
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑tanzhouzhou吗?
发布(14)
刷题
tanzhouzhou
2023-06-02 14:26
web前端
明天出发云南啦~
2023-06-02
在牛客打卡2天,今天学习:刷题 10 道/代码提交 22 次
每日监督打卡
0
点赞
评论
收藏
转发
tanzhouzhou
2023-06-02 11:18
web前端
题解 | #Proxy拦截器#
<script> const _proxy = (object, ...prototypes) => { return new Proxy(object, { get(target, propKey) { if (prototypes.includes(propKey)) { return 'noright' } return target[propKey] } }) } </script>
0
点赞
评论
收藏
转发
tanzhouzhou
2023-06-02 11:03
web前端
题解 | #Proxy计数器#
本题考点:Proxy代理思路:用Proxy拦截对象的取值操作如果对象中包含要取的key,count++,否则count-- <script> let count = 0 const _proxy = object => { // 补全代码 return new Proxy(object, { get(target, propKey) { if (target[propKey]) { count ++ } else { count --...
0
点赞
评论
收藏
转发
tanzhouzhou
2023-06-02 10:49
web前端
题解 | #全选#
咱也不知道为啥运行不了。。本题考点:Array.from、everyArray.from 将类数组转成真正的数组,才能遍历every 全部选中返回true,只要有1个不选中则返回false,刚好满足该题条件。 <script> const oAll = document.getElementById('all') const items = Array.from(document.getElementsByClassName('item')) items.forEach((item) => ...
0
点赞
评论
收藏
转发
tanzhouzhou
2023-06-02 09:46
web前端
题解 | #Getter#
本题考点:class、Getter取值函数核心步骤:创建Rectangle类,在默认方法constructor中写入width,heigh参数(当new Rectangle执行)创建Getter area取值函数,获取area时返回乘积 <script type="text/javascript"> class Rectangle { constructor(height, width) { this.height = height this.width = width } get area() { return this.height *...
0
点赞
评论
收藏
转发
tanzhouzhou
2023-06-02 09:25
web前端
题解 | #Map保存节点#
要return才能运行成功。 const _elementKey = () => { const oP = document.getElementsByTagName('p')[0] const map = new Map() return map.set(oP, oP.innerHTML) }
0
点赞
评论
收藏
转发
tanzhouzhou
2023-06-01 18:38
已编辑
web前端
题解 | #数组过滤#
我想从封装的角度完成这道题,只需给一个范围值 筛选即可。有没有更好的方法。 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> </head> <body> <select name="" id=""> <option value="0">请选择销量范围</option> <option value="1...
0
点赞
评论
收藏
转发
tanzhouzhou
2023-06-01 17:27
web前端
不开心
2023-06-01
在牛客打卡1天,今天学习:刷题 4 道
0
点赞
评论
收藏
转发
tanzhouzhou
2022-04-24 14:32
web前端
题解 | #参数解析器#
思路: 1、将url参数部分取出 (通过slice+lastIndexOf)拿到所有参数 2、再通过split对所有参数进行分割 (此时得到:['id=1','salas=1000']) 3、循环split,通过数组结构获取key、value 并赋值给新对象 function _getParams(url) { let splitUrl = url.slice(url.lastIndexOf('?')+1).split('&') let obj = {} splitUrl.map(n => { ...
0
点赞
评论
收藏
转发
tanzhouzhou
2022-04-23 23:58
web前端
题解 | #新数组#
简洁~ const _delete = (array,index) => { return array.filter((n,i) => i!=index) }
0
点赞
评论
收藏
转发
tanzhouzhou
2022-04-23 21:04
web前端
题解 | #JS动态创建节点#
请补全JavaScript函数,根据参数数组创建li元素。 要求: li元素的个数和数组的长度一样 li元素的内容是数组中的每个元素 将创建的所有li元素插入到ul中 function createLi(array){ // 补全代码 let oUl = document.querySelector('ul'); let fragment = document.createDocumentFragment(); array.map(n => { let oL...
0
点赞
评论
收藏
转发
tanzhouzhou
2022-04-20 13:34
web前端
题解 | #返回函数#
实现函数 functionFunction,调用之后满足如下条件: 1、返回值为一个函数 f 2、调用返回的函数 f,返回值为按照调用顺序的参数拼接,拼接字符为英文逗号加一个空格,即 ', ' 3、所有函数的参数数量为 1,且均为 String 类型 function functionFunction(str) { let arr = [] function fn(str){ arr.push(str); return arr.join(', ') } fn(str) return fn } console.log(functionFunction("Hel...
0
点赞
评论
收藏
转发
tanzhouzhou
2022-04-19 21:40
web前端
题解 | #无重复数组#
请补全JavaScript代码,实现一个函数,要求如下: 根据输入的数字范围[start,end]和随机数个数"n"生成随机数 生成的随机数存储到数组中,返回该数组 返回的数组不能有相同元素 注意: 不需要考虑"n"大于数字范围的情况 const _getUniqueNums = (start,end,n) => { let arr = new Set() for(let i = 0; i < n; i++){ let randomNum = parseInt(Math.random(start)*end+1); arr.add(randomNum) } ...
0
点赞
评论
收藏
转发
tanzhouzhou
2022-04-19 21:35
web前端
题解 | #Array.reduce#
请补全JavaScript代码,实现一个函数,要求如下: 根据输入的数字范围[start,end]和随机数个数"n"生成随机数 生成的随机数存储到数组中,返回该数组 返回的数组不能有相同元素 注意: 不需要考虑"n"大于数字范围的情况 const _getUniqueNums = (start,end,n) => { let arr = new Set() for(let i = 0; i < n; i++){ let randomNum = parseInt(Math.random(start)*end+1); arr.add(randomNum) } return [......
0
点赞
评论
收藏
转发
1
工具箱
TA的圈子
暂未加入圈子
TA的圈子
TA的笔记
暂无笔记
TA的笔记
登录
0
天
已登录
0
天
连续登录
0
人
今日访客
牛客网
牛客企业服务