AI
推荐
模板社区
专题
登录
免费注册
首页
思维导图
详情
JS初级
2022-02-19 23:42:10
3
举报
分享方式
免费使用
AI智能生成
JS入门的常用方法
#JS
#入门
常用
模版推荐
作者其他创作
大纲/内容
重要内置函数
parseInt
parseFloat
eval
isNaN
字符串处理
.length
toUpperCase
toLowerCase
charAt
subString
replace
split
indexOf
lastIndexOf
子主题
数组处理
.length
slice
unshift
push
shift
pop
sort(函数))
reverse
join
时间处理
getDate
getFullYear
getDay
getMonth
setxxx
getxxx
Math处理
数学常量
用PI表示180度
数学函数
max
min
sin
cos
tan
asin
acos
atan
atan2
floor
ceil
random
abs
sqrt
pow
log
exp
生成任意数
生成随机整数
DOM处理
节点与元素
元素节点
属性节点
文本节点
选择器
getElementById
getElementsByTapName
getElementsByClassName
getElementsByName
querySelector
querySelectorAll
document.title
document.body
动态dom
createElement
createTextNode
appendChild
insertBefore
removeChild
cloneNode
replaceChild
HTML属性
.attr
getAttribute("attr")
setAttribute("attr", value)
removeAttribute
hasAttribute
CSS属性
getcumputedStyle
style.attr
styyle.cssText
Dom遍历
parentNode
childNodes
firstChild
lastChild
children
fisrtChildren
lastChildren
previousSibling
nextSibling
previousElementSibling
nextElementSiling
innerHTML
innerText
事件
鼠标事件
onclick
onmouseover
onmouseout
onmousedown
onmouseup
onmousemove
键盘事件
onkeydown
onkeyup
表单事件
onfocus
onblur
onselect
onchange
编辑事件
oncopy
onselectstart
oncontextmenu
页面事件
onload
onbeforeunload
事件处理器
事件监听器
addEventListener
removeEventListener
event对象
Window对象
子对象
document
location
navigator
history
screen
常用方法
alert
confirm
prompt
open
close
setTimeout
clearTimeout
setInterval
clearInterval
document对象
属性
title
body
forms
images
links
cookie
URL
referrer
常用方法
获取元素的
createELement
createTextNode
write
writeln
收藏
立即使用
生活中的不合理理念
收藏
立即使用
时间序列处理
收藏
立即使用
Linux进程状态
收藏
立即使用
JS初级
等等看看
职业:暂无
去主页
Collect
Get Started
co.js
Collect
Get Started
MYSQL(初级)
Collect
Get Started
啪啪乐
Collect
Get Started
股票初级
评论
0
条评论
下一页
图形选择
思维导图
主题
补充说明
AI生成
修改AI描述
去编辑
重新生成
提示
关闭后当前内容将不会保存,是否继续?
取消
确定
Document