2010-10-28 22 views
0

可能重複:
How to find out about the User Agent in GWT如何瞭解theBroswer在GWT

我想寫瀏覽器特定的代碼。有沒有一個GWT API來找出客戶端使用哪個瀏覽器?

+0

檢查http://stackoverflow.com/questions/2759321/how-to-find-out-about- the-user-agent-in-gwt – 2010-10-28 06:05:39

+1

Wtf?!!?這正是(我的意思是......)gregcase指向的同一個問題?!某種笑話?如果不是,你正在尋找的是所謂的綁定(http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsDeferred.html) – z00bs 2010-10-28 06:48:02

+0

z00bs在這兩種情況下都是正確的 - 你應該檢查另一個問題,但我建議使用Deffered Binding(這種方式瀏覽器特定的代碼只能被實際使用它的瀏覽器下載)。 – 2010-10-28 07:33:40

回答