Asp中with的功能

来源:互联网 发布:aegisub mac 教程 编辑:程序博客网 时间:2024/04/30 05:15
<script type="text/javascript"><!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;//--></script><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