Can I use a third party Javascript library in GWT

十年热恋 提交于 2019-12-11 03:38:09

问题


for example mootools!! It's comfortable for me to coding in js, but not for everyone obviously.


回答1:


You certainly can. The best thing is to write yourself some nice JavaScript Overlay Types, which encapsulate your access to the third-party library. That way, other developers - I assume that you are trying to set things up for a team - can interact with the third-party JS library without having to know a heap about it.




回答2:


Yes, See here: http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html#methods-fields



来源:https://stackoverflow.com/questions/4723193/can-i-use-a-third-party-javascript-library-in-gwt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!