javascript中的with(document){}

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/06 19:15:55
javascript中的with(document){}

javascript中的with(document){}
javascript中的with(document){}

javascript中的with(document){}
就是用document这个对象的意思,
简写代码,不用重复写document
如:
with(document)
{.title='aaa';
}
相当于:
document.title='aaa';