蒟蒻的菜狗
蒟蒻的菜狗
全部文章
分类
归档
标签
去牛客网
登录
/
注册
蒟蒻的菜狗的博客
TA的专栏
0篇文章
0人订阅
蒟蒻的错题集
0篇文章
0人学习
全部文章
(共52篇)
题解 | BM1 反转链表
/*function ListNode(x){ this.val = x; this.next = null; }*/ function ReverseList(pHead) { // write code here let list = new ListNode(0...
2023-04-06
0
195
题解 | JS91 简易计算器
var Calculator = { init: function () { var that = this; if (!that.isInited) { that.isInited = true; // 保存操...
2023-03-02
1
317
题解 | JS89 设置标签
var tagInput = { isInited: false, init: init, bindEvent: bindEvent, addTag: addTag, removeTag: removeTag }; tagInput.init(); func...
2023-03-01
0
363
题解 | JS88 dom节点转成json数据
function dom2json() { let dom = document.getElementById("jsContainer"); function getJsonObj(node) { let obj = {}; obj.tag = n...
2023-03-01
0
421
题解 | JS87 移动控制
function bind() { let con = document.getElementById('jsContainer'); let rows = con.querySelectorAll('tr'); let cols = rows[0].querySelect...
2023-02-28
0
374
题解 | JS86 分页
function Pagination(container, total, current) { this.total = total; this.current = current; this.html = html; this.val = val; thi...
2023-02-28
0
357
题解 | JS82 倒计时
function second(second) { let mins = parseInt(second/60); let hours = parseInt(mins/60); let days = parseInt(hours/24); return { ...
2023-02-22
0
327
题解 | JS81 替换链接
function link() { let container = document.getElementById("jsContainer") let reg = /(http(s)?:\/\/|www\.)[\w\.\?\=\%]+/g; container.inne...
2023-02-21
0
313
题解 | JS80 表格排序
function sort(type, order) { let table = document.getElementById("jsList") let items = document.getElementsByTagName("tr"); let data = [] ...
2023-02-20
0
277
题解 | JS79 购物车
function add(items) { let table = document.querySelector("tbody"); let str = ""; for (let i = 0; i < items.length; ++i) { let i...
2023-02-20
0
289
首页
上一页
1
2
3
4
5
6
下一页
末页