1

gwtを勉強しているときに、developers.google.comで次の文を見ました。

"The "`cache`" files contain your application's logic. If you were to look inside a 
`.nocache.html` file, you would see that it is JavaScript code wrapped in a thin HTML
 wrapper.You might wonder why the `GWT` Compiler doesn't simply emit it as a JavaScript .js 
file. The reason for this is that certain browsers do not correctly handle compression of 
pure-JavaScript files in some circumstances. This would effectively mean that users 
unfortunate enough to be using such a browser would download the `.js` file uncompressed. "

javascript.cache.htmlファイルからロードしているのに、なぜ.jsからダウンロードできないのですか?私は今、すべてのブラウザがjavascript..をサポートしていると思います。

4

1 に答える 1

1

引用された声明はそれを非常に明確に説明しているようです:「特定のブラウザは、状況によっては純粋なJavaScriptファイルの圧縮を正しく処理しません」。JavaScriptをサポートすることではなく、JavaScriptファイルの圧縮をサポートすることです。

于 2012-11-26T07:12:15.713 に答える