摩罗星
摩罗星
全部文章
题解
归档
标签
去牛客网
登录
/
注册
摩罗星的博客
全部文章
/ 题解
(共3篇)
题解 | #移动控制#
function bind() { document.onkeydown = event => { if (!event) return; var code = event.keyCode || ''; ...
2021-06-27
3
716
题解 | #分页#
第一次写困难题的题解,如果你有更好的建议和解法,欢迎评论交流。 ~最主要的就是要确定页码的区间 function Pagination(container, total, current) { this.total = total; this.current = current; ...
2021-06-24
2
585
题解 | #数组去重#
利用set进行判断去重 Array.prototype.uniq = function () { let arr = this; let res = [];//结果要返回的没有重复元素的数组 let set = new Set();//利用set记录数组中的元素,是否出现过 ...
2021-05-30
11
1506