with(document)
{
write ("test");
write ("dsasfda");
}
上面是用了with
如果不用的话就要这样写了
document.write ("test")
document.write ("dsasfda");
省掉了不少的代码哟
javascript中的with
最新推荐文章于 2022-02-10 22:49:14 发布