在GWT中哪个更好? [英] Which is better in GWT?

查看:126
本文介绍了在GWT中哪个更好?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在GWT界面中哪个更好,将普通的MVP与javacode或UiBinder一起使用?从性能,编辑,简单性方面.

which is better in GWT interface, using the normal MVP with javacode, or UiBinder?? from performance, editing, simplicity aspects.

推荐答案

这是

除了通过代码来构建UI之外,UiBinder除了是一种更自然,简洁的方法之外,UiBinder还可以使您的应用程序更高效.浏览器比起一堆API调用,更擅长通过将HTML大字符串塞入innerHTML属性来构建DOM结构. UiBinder自然地利用了这一优势,其结果是,构建应用程序的最令人愉快的方式也是构建应用程序的最佳方式.

Besides being a more natural and concise way to build your UI than doing it through code, UiBinder can also make your app more efficient. Browsers are better at building DOM structures by cramming big strings of HTML into innerHTML attributes than by a bunch of API calls. UiBinder naturally takes advantage of this, and the result is that the most pleasant way to build your app is also the best way to build it.

因此,从您提到的观点来看,UiBinder可以提供更多优势.但是,我不会在UiBinder中做任何事情.只是从它开始,您会发现,在其中一些纯代码可能是更好(或唯一)的选择!

So probably judging by the points you mentioned, UiBinder provides more advantages. However, I wouldn't do everything in UiBinder. Just start with it, and you'll find out, where a little bit of pure code might be a better (or the only) choice!

这篇关于在GWT中哪个更好?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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