javascript
1.语法部分
函数表达式写法
立即执行函数写法
立即执行函数(IIFE)在定义后会立即执行,因此,它本身不会被显式调用。
JavaScript对象和数组
const和let的区别
DOM对象
获取dom对象
操作dom对象
操作内容
表单属性
操作样式
排它思想
自定义属性
BOM对象
简介
JavaScript定时器
javascript 定时器有以下两个方法:
setInterval() :按照指定的周期(以毫秒计)来调用函数或计算表达式。方法会不停地调用函数,直到 clearInterval() 被调用或窗口被关闭。
setTimeout() :在指定的毫秒数后调用函数或计算表达式。
记住括号内要放函数 而不是放代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div>定时器</div>
</body>
//一般都是往里面加函数 不会加代码
<script>
setTimeout(settimetest, 10000)
setTimeout(settimetestone, 100000)
setInterval(settimetesttwo, 1000)
function settimetest() {
var goot = document.querySelector("div")
goot.innerText = "hhhh"
}
function settimetestone() {
console.log("hellow")
}
function settimetesttwo() {
console.log("hellowaaa")
}
</script>
</html>
常用API
URLSearchParams
fetch
API
localStorage
和 sessionStorage
History
API
IntersectionObserver
API
Geolocation
API
Notification
API
Canvas
API
WebSocket
API
MutationObserver
API
File
API
jQuery
jQuery的基础知识
jQuery常用API
选择器
jQuery样式操作
jQuery效果
node.js
补充问题
路径问题
时钟案例
HTTP模块
模块化
包和npm