<
html
>
< head >
< title > study 019 </ title >
</ head >
< body >
< p > with语句测试 < br >
< script language ="JavaScript" type ="text/javascript" > ...
with(new Date())
...{
document.write(getYear() + "年" + (getMonth() + 1) + "月" + getDate() + "日");
}
</ script >
</ p >
</ body >
</ html >
< head >
< title > study 019 </ title >
</ head >
< body >
< p > with语句测试 < br >
< script language ="JavaScript" type ="text/javascript" > ...
with(new Date())
...{
document.write(getYear() + "年" + (getMonth() + 1) + "月" + getDate() + "日");
}
</ script >
</ p >
</ body >
</ html >