如何在 JSF 页面中包含外部 Javascript 文件 [英] How to include external Javascript file in a JSF page

查看:27
本文介绍了如何在 JSF 页面中包含外部 Javascript 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想包含 jQuery UI 的 URL http://code.jquery.com/ui/1.9.0/jquery-ui.js 在我的 JSF 页面中.我看到很多问题都说应该使用 <h:outputScript> ,但在所有答案中我都没有看到有关如何包含 URL 的示例.仅当 js 文件存在于项目的某个文件夹中时,答案才相关.

I want to include the URL of jQuery UI http://code.jquery.com/ui/1.9.0/jquery-ui.js in my JSF page. I saw many questions which said <h:outputScript> should be used, but in none of the answers I saw an example as to how to include an URL. The answers were only relevant if the js file is present in some folder of the project.

有人可以帮我把它包含在我的页面中吗?

Can someone please help where I have to include it in my page?

推荐答案

只需使用普通的 HTML

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆