<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
with与js里的不同但功能都是一样,简化代码的作用。 如:response.write("...")
response.write("...")
就可以简化为
with response
.write(...)
.write(...)
end with
用request或者是其它的都是一样的
request.querystring("aa")
request.querystring("bb")
=
with(request)
.querystring("aa")
..
end with
本文介绍了一种简化代码的方法,使用with语句可以减少重复调用同一对象属性的情况,提高代码的可读性和简洁性。例如,将多次调用response.write替换为with语句块内的连续调用。

被折叠的 条评论
为什么被折叠?



