问题
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