问题
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