web.config中批= QUOT;假" [英] web.config batch="false"

查看:164
本文介绍了web.config中批= QUOT;假"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是添加在编译标记的批=假在ASP.NET 1.1的目的是什么?

What is the purpose of adding the batch="false" in the compilation tag in ASP.NET 1.1?

推荐答案

MSDN说,一批标志的目的

MSDN says the purpose of the batch flag

消除了需要引起编译延迟,当你
  访问一个文件首次。当此属性设置为True,
  ASP.NET precompiles在批处理模式下,所有未编译的文件,这些文件
  导致甚至更长的时间延迟第一时间的文件被编译。
  然而,该初始延迟之后,编译延迟被消除
  上的文件的后续访问。

eliminates the delay caused by the compilation required when you access a file for the first time. When this attribute is set to True, ASP.NET precompiles all the uncompiled files in a batch mode, which causes an even longer delay the first time the files are compiled. However, after this initial delay, the compilation delay is eliminated on subsequent access of the file.

有其设置为false可能会让它更快编译第一次,但速度较慢次以后,我相信这也适用于1.1为好。

Having it set to false will probably make it compile faster the first time, but slower subsequent times, and I believe this applies to 1.1 as well.

MSDN链接

这篇关于web.config中批= QUOT;假"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆