2014-10-02 77 views

回答

7

-XjsInteropMode JS將輸出標準的反混淆javascript訪問器(方法名稱直接匹配,bean getter/setters映射到簡單屬性訪問)。我假設,使用閉幕選項將關閉類型註釋添加到輸出,以確保GWT和封閉之間的雙向式安全......但Goktug已回覆在G +,說:

-XjsInteropMode CLOSURE was used to generate export code in a way 
that was assuming closure goog.provide(...) statements exists in 
the beginning of js (potentially produced and prepended by a linker). 
It was not useful for general public. 

I'm using past tense because the option is now removed from the trunk. 

Anways,如果你對Gwt的封閉感興趣,視頻還沒有出來,但是Ray Cromwell關於Google Inbox的談話提到他們如何支持Gwt的高度優化,快速編譯 - > Closure Friendly JS - > Minified obfuscated JS。

當視頻到了,看看這裏: http://gwtcreate.com/videos/index.html 在此之前,這裏的幻燈片: https://drive.google.com/a/wetheinter.net/file/d/0B3ktS-w9vr8IS2ZwQkw3WVRVeXc/view

最後,雷人的談話特別是約的js互操作性: https://docs.google.com/a/wetheinter.net/file/d/0ByS1wxINeBWjeGYxbkJpamxFZ28/edit

注意,有也是這個談話的視頻。這很好。上傳時,你應該觀看它們。

相關問題