该项目基于 struts-jquery-3.6.1 我想在 jquery 中编写一个小部件,所以我将 head 标签更改如下,以导入 jQuery UI 标签:
<sj:head debug="true"
jqueryui="true"
defaultLoadingText="Please wait ..." />
它使 html 为
<script type="text/javascript" src="/struts/js/base/jquery.ui.core.js?s2j=3.6.1"></script>
jquery.ui.core.js 是核心!它不包括 jquery.ui.widget.js。你知道解决它的最好方法是什么吗?我不想在我的代码中手动添加脚本