什么是添加jQuery插件的正确方法 [英] What is the proper way to add a jquery plugin

查看:122
本文介绍了什么是添加jQuery插件的正确方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用JBOSS 3.01,JSF 1.2和RichFaces 3.

I am using JBOSS 3.01 and JSF 1.2 and RichFaces 3.

添加jquery插件的正确方法是什么?

What is the proper way to add a jquery plugin?

<a:loadScript src="/scripts/jquery.cookie.js"/>

<script type="text/javascript" src="/scripts/jquery.cookie.js"></script>

我明白了 jQuery.cookie不是函数 [中断此错误] if(jQuery.cookie("cssswitch")){ 当我尝试使用a:loadScript时.我们的命名空间是a:而不是a4j:

I get jQuery.cookie is not a function [Break On This Error] if(jQuery.cookie("cssswitch")) { When I try to use the a:loadScript. Our namespace is a: instead of a4j:

推荐答案

这一个:

<script type="text/javascript" src="/scripts/jquery.cookie.js"></script>

是一个基本的html元素,不需要其他解释器.

ite a basic html element which doesn't need other interpreter .

这篇关于什么是添加jQuery插件的正确方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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