Liferay 中的 JQuery UI 自动完成

发布于 2024-10-17 19:27:23 字数 215 浏览 8 评论 0原文

    I have implemented Jquery UI Autocomplete functionlaity in Liferay 6 ...

它运行良好,但是当我将其放入 Liferay 5.2.3 时...它与 Jquery 存在各种问题...我可以在我的自定义 portlet 中使用 js 1.4 版本文件吗???...

谢谢提前

    I have implemented Jquery UI Autocomplete functionlaity in Liferay 6 ...

its running well but when I'm dng this into Liferay 5.2.3 .....its having various probelms with Jquery .....Can I use js 1.4 version files in my custom portlet????...

Thanks in Advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情场扛把子 2024-10-24 19:27:23

Liferay 旧版本使用 JQuery,这可能与您的 JQuery 库版本冲突。 Liferay 6 通过引入使用 YUI 库的 AlloyUI 解决了这个问题。 Liferay 6 不包含任何 Jquery 库,因此您使用的任何版本都应该运行良好。

我可以想到两种方法来解决这个问题

  • 在liferay 5上不要添加自己的JQuery库。只需添加插件js并看看它是否有效。
  • 您检查 Liferay 5.2.3 附带的 JQuery 版本,看看您的自动完成插件是否适用。

希望这有帮助

Liferay older versions use JQuery which may be conflicting with your version of JQuery library. Liferay 6 has resolved that issue by introducing AlloyUI which uses YUI library. Liferay 6 does not contain any Jquery library in it so any version you use should go well.

I can think of two ways to solve this problem

  • On liferay 5 do not add your own JQuery library. just add the plugin js and see if it works.
  • You check the JQuery version which ships with Liferay 5.2.3 and see if your autocomplete plugin works with it.

Hope this helps

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文