APDCoder
APDCoder
全部文章
分类
归档
标签
去牛客网
登录
/
注册
APDCoder的博客
全部文章
(共6篇)
题解 | #Object.freeze#
Object.freeze = writable: false + Object.seal = writable: false + Object.preventExtensions + configable: false <!DOCTYPE html> <html> ...
2023-03-21
0
416
题解 | #简易计算器#
var Calculator = { init: function () { var that = this; if (!that.isInited) { that.isInited = true; // 保存操...
2023-03-15
0
360
题解 | #设置标签#
var tagInput = { isInited: false, init: init, bindEvent: bindEvent, addTag: addTag, removeTag: removeTag }; tagInput.init(); func...
2023-03-11
0
274
题解 | #dom节点转成json数据#
function dom2json() { const container = document.querySelector("#jsContainer"); function createObj (dom) { let obj = { ...
2023-03-11
0
437
题解 | #分页#
function Pagination(container, total, current) { this.total = total; this.current = current; this.html = html; this.val = val; thi...
2023-03-10
0
378
题解 | #时间格式化输出#
function formatDate(date, format) { let formatArr = []; format.replace(/\w+|:|\s|-|星期/g, function (text) { text && formatArr.push(text) }) ...
2023-02-24
2
472