[英]Is there any way to attach javascript file in myapplicationUI in VAADIN 6
有沒有辦法像我有JavaScript.getCurrent().execute("alert('hello javascript')");
一樣在myapplicationUI類中附加javascript文件JavaScript.getCurrent().execute("alert('hello javascript')");
。 我不想只執行1行,而是需要運行整個文件。 所以我怎么能實現我的目標。 注意:我正在使用VAADIN 6謝謝
抱歉,如果您打錯了,但由於聲譽不佳,我無法發表評論。
您不能使用@JavaScript注釋嗎?
看到:
https://vaadin.com/api/7.2.6/com/vaadin/annotations/JavaScript.html
https://vaadin.com/wiki/-/wiki/Main/Integrating+a+JavaScript+component+
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.