一叶轻舟呀
一叶轻舟呀
全部文章
分类
归档
标签
去牛客网
登录
/
注册
一叶轻舟呀的博客
全部文章
(共44篇)
题解 | #Proxy计数器#
let count = 0 const _proxy = object => { return new Proxy(object, { get(target, prop, receiver) { if (prop in target) { count++ } else { ...
2023-01-09
0
271
题解 | #全选#
我写的代码,不符合题目引导的方向,所以通过不了测试,但是比题目要求的,更加精简,利用事件委托,不直接将事件写在input上,如果有兴趣,可以看看我的代码,谢谢。 let ul = document.querySelector('ul') let checkedCount = 0 ...
2023-01-08
0
299
题解 | #控制动画#
<!DOCTYPE html> <html> <head> <meta charset=utf-8> <style type="text/css"> #rect { width: 120px; he...
2023-01-08
0
330
题解 | #数组过滤#
var cups = [ { type: 1, price: 100, color: 'black', sales: 60, name: '牛客logo马克杯' }, { type: 2, price: 40, color: 'blue', sales: 100, name: '无盖星空杯'...
2023-01-08
0
318
题解 | #生成页码#
const _createPage = (allItem, pageItem) => { let currentPage = Math.ceil(allItem / pageItem) let lis = '' for (let i = 1; i <= currentPag...
2023-01-08
0
281
题解 | #模板字符串#
var person = { level: '2', name: '小丽', registTime: '2021-11-01', } var h2 = document.querySelector('h2'); // 补全代码 let differenceDay = Math.floor((Date...
2023-01-08
0
248
题解 | #列表动态渲染#
var people = [ { name: '牛油1号', id: 1, age: 20 }, { name: '牛油2号', id: 2, age: 21 }, { name: '牛油3号', id: 3, age: 19 }, ] var u...
2023-01-08
0
256
题解 | #数组排序#
var cups = [ { type: 1, price: 100, color: 'black', sales: 3000, name: '牛客logo马克杯' }, { type: 2, price: 40, color: 'blue', sales: 1000, na...
2023-01-08
0
322
题解 | #单向绑定#
<!DOCTYPE html> <html> <head> <meta charset=utf-8> </head> <body> <input id="input" type="text" /> &...
2023-01-08
0
243
题解 | #_objectCreate#
let _objectCreate = function(proto,propertiesObject) { if(typeof proto != 'object') return let obj = {} obj.__proto__ = proto if(typeof propert...
2022-12-04
1
254
首页
上一页
1
2
3
4
5
下一页
末页