随笔分类 - js
摘要:防抖延迟刷新 function debounce(fn, delay) { let timerId = null; return function () { let self = this; let args = arguments; timerId && clearTimeout(timerId)
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <table class="table toggle-arrow-tiny"> <thead> <tr
阅读全文
摘要:js 水印 function watermark(valueList, tagId='') { let tab = null; let maxWidth = 0; let maxHeight = 0; if (tagId){ tab = document.getElementById(tagId);
阅读全文