它使得在IE中可移植成为可能: http://softwareas.com/portable-comet-its-the-iframe-stupid 此外,一些人将其用作安全功能。在iFrame中,您可以将所有内容都包含在JavaScript闭包中并提高安全性。但是,还有更好的安全性想法。 http://code.google.com/p/google-caja/ http://www.adsafe.org/