如何向 vaadin 网站添加 javascript 插件 [英] how to add a javascript plugin to vaadin website
问题描述
我想向我的 Vaadin 网站添加一个网络插件.通常对于此类插件,您将 JavaScript 片段添加到 或
部分(取决于插件),但我们无权访问直接在 Vaadin 开发中完成,所以想知道人们是如何做到的?
I want to add a web plugin to my Vaadin website. Normally for such plugins, you add a JavaScript snippet to the <body>
or <head>
sections (depending on the plugin), but we don't have access to that directly in Vaadin development, so was wondering how people do it?
也许这是我们使用 @JavaScript
注释的地方,引用了 此处,但这似乎有点过分,因为我认为我不需要组件.
Maybe this is where we use @JavaScript
annotation, referenced here, but that seems like overkill since I don't think I need a component.
推荐答案
@JavaScript
可以用来加载任何 JavaScript 文件,它不需要是一个组件.
@JavaScript
can be used to load any JavaScript file, it doesn't need to be a component.
这篇关于如何向 vaadin 网站添加 javascript 插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!