1-1 如何获取DOM元素
byId
byClassName
byTagName
query
1-2 DOM的增删改查
appendChild()
insertBefore()
append()
prepend()
before()
after()
remove()
1-1 操作css
add()
remove()
toggle()
contains()
1-1 BOM
screen
screen.availwidth
location
location.href
history
histroy.back()
histroy.forward()
事件
onclick
onfocus
onblur
函数
1-1声明一个函数
#1.使用function关键字去声明
function show(){
console.log("hello world")
}
#2.var
var show=function(){
console.log("hello");
}
1-1 return
function go(){
return"1"
}
1-1 函数的参数
#1.函数传不定参
#2.arguments
#3.重载
1-1 函数和对象
var obj = {
name:"shang",
sayName(){
console.log(this.name)
},
sayAge:()=>{
console.log(18)
},
saySkill:function(){
console.log("javascript")
}
}