What is the proper way to add a jquery plugin

女生的网名这么多〃 提交于 2020-01-03 04:03:19

问题


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

What is the proper way to add a jquery plugin?

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

or

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

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:


回答1:


this one :

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

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



来源:https://stackoverflow.com/questions/8173441/what-is-the-proper-way-to-add-a-jquery-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!