JavaScript English Vocabulary Glossary
This article presents a detailed glossary of common JavaScript English keywords, objects, methods, and properties with their Chinese translations, organized into two comprehensive tables to help developers quickly understand and reference essential JavaScript terminology.
This article presents a detailed glossary of common JavaScript English keywords, objects, methods, and properties with their Chinese translations, organized into two comprehensive tables to help developers quickly understand and reference essential JavaScript terminology.
var定义变量
if如果
else否则
switch切换
for循环
while当...的时候
do做
break中断
continue继续
function函数,功能
return返回
number数字
int整数
float浮点数
string字符串
bool布尔
boolean布尔
typeof类型
null空,空值
array数组
length长度
concat连接
join串联
pop弹出
push压入
reverse反转
sort排序
slice切片,划分
splice铰接,粘接
charAt获取某位置字符
indexOf判断某字符的首次位置
lastIndexOf判断某字符的最后一次位置
replace替换
split分割
substr截取字符串
substring截取字符串
toLowerCase转换为小写
toUpperCase转换为大写
random随机
round取整
ceil向上取整
floor向下取整
abs取绝对值
max最大值
min最小值
pow幂运算
sqrt取开方
new新建
date日期
time时间
year年
month月
hour时
minute分
second秒
millisecond毫秒
status状态
alert警告
confirm确认
prompt提示,提示符
open打开
setInterval设置反复性定时器
setTimeout设置一次性定时器
clear清除
close关闭
back后退
width宽度
height高度
appName程序名
appCodeName程序代号
appVersion程序版本
appAgent程序代理
clientX clientY srcElement源对象,事件
cancel取消
bubble冒泡
keyCode键值
this这个,当前
onload在装载时
onclick在点击时
ondblclick在双击时
onmouseover在鼠标进入时
onmouseout在鼠标离开时
onmousemove在鼠标移动时
onmousedown在鼠标按下时
onmouseup在鼠标抬起时
onkeydown在按键按下时
onkeyup在按键抬起时
onkeypress在按键时
onsubmit在提交时
onchange在改变时
onfocus在获得焦点时
onblur在失去焦点时
document文档
write写入
getElementById通过ID获取对象
element元素,对象
option选项
attribute属性
child孩子,下级
parent父母,上级
node节点
first第一个
last最后一个
next下一个
previous上一个
create创建
append附加
php中文网 Courses
php中文网's platform for the latest courses and technical articles, helping PHP learners advance quickly.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.