随笔分类 - JQuery
摘要:js 水印 function watermark(valueList, tagId='') { let tab = null; let maxWidth = 0; let maxHeight = 0; if (tagId){ tab = document.getElementById(tagId);
阅读全文
摘要:js获取url let url = window.location.href; console.log(url) // 返回当前页面的路径和文件名,如:/testdemo/test.html let pathname = window.location.pathname; console.log(p
阅读全文
摘要:元素寻找 选择器(selector) 1、基本选择器 $("*") // 选取所有元素 $("element") // 选取标签名称的所有元素 $("#id") // 选取id 属性指定的元素 $(".class") // 选取指定的 class 查找元素 $(".calss,p,div") //
阅读全文