文章分类 - JavaScript
js基础
摘要:div{ width: 200px; height: 100px; background-color: blue; } p{ width: 100px; height: 80px; background-color: red } <div><p></p></div> var div = docume
阅读全文
摘要:{ "code":200, "data":[ { "list":[], "operatingRecord":"未签收", "operatingTime":"", "role":"", "roleName":"供应商", "supplyCode":"" }, { "list":[ { "operati
阅读全文
摘要:1、let、const 以及 var 的区别是什么? 其是否会挂载到window上var声明的变量会挂载在window上,而let和const声明的变量不会挂载到window上,它形成了一个块作用域 是否存在变量提升var声明变量存在变量提升,let和const不存在变量提升 暂时性死区let 和
阅读全文
摘要:大部分人都知道,querySelectorAll 返回的是一个 Static Node List,而 getElementsBy 系列的返回的是一个 Live Node List。 // Demo 1 var ul = document.querySelectorAll('ul')[0], lis
阅读全文

浙公网安备 33010602011771号