Js脚本之jQuery学习笔记(1)
Js脚本之jQuery学习笔记(1)
一、javascript基础
单行注释
多行注释 /* */
数据类型
数值型
字符串型
布尔型
空值
未定义值
转义字符
方法:
indexOf()
toIpperCase()
replace()
方法:
getYear()
getDay()
方法:
window.open()
window.close()
方法:
write()
getElementById()
二、DOM基础
DOM文档对象模型,节点树。对Python中的beautifulSoup理解更深。
DOM的4个接口
Document接口
Node接口
Nodelist接口
nameNodemap接口
DOM常用对象
Document对象
Node对象
Nodelist对象
Element对象
Attr对象