連接:https://pan.baidu.com/s/1wQ7xT83bglouprPN0Gu7qA 密碼:ay6qjavascript
if (oConvertUtils.isIn("uploadify", types)) { /*sb.append("<link rel=\"stylesheet\" href=\""+basePath+"/plug-in/uploadify/css/uploadify.css\" type=\"text/css\"></link>"); sb.append("<script type=\"text/javascript\" src=\""+basePath+"/plug-in/uploadify/jquery.uploadify-3.1.js\"></script>");*/ sb.append("<link rel=\"stylesheet\" href=\""+basePath+"/plug-in/uploadify/css/uploadify.css\" type=\"text/css\"></link>"); sb.append("<script type=\"text/javascript\" src=\""+basePath+"/plug-in/plupload/plupload.full.min.js\"></script>"); sb.append("<script type=\"text/javascript\" src=\""+basePath+"/plug-in/tools/Map.js\"></script>"); }
<tag> <name>upload</name> <!-- <tag-class>org.jeecgframework.tag.core.easyui.UploadTag</tag-class> --> <tag-class>org.jeecgframework.tag.core.easyui.UploadPlTag</tag-class> <body-content>JSP</body-content> <description>選項卡選項標籤</description> ......
<script type="text/javascript" src="plug-in/tools/Map.js"></script>
例如:搜索到文件src/main/resources/jeecg/ext-template/table/onetomany/cgform_jspTemplate_add.ftl中有 「jquery.uploadify-3.1.js」代碼以下:css
<t:base type="jquery,easyui,tools,DatePicker"></t:base> <#if callbackFlag == true> <link rel="stylesheet" href="plug-in/uploadify/css/uploadify.css" type="text/css" /> <script type="text/javascript" src="plug-in/uploadify/jquery.uploadify-3.1.js"></script> </#if>
現須要將if判斷內的JS替換掉,而且新增一個,改爲以下代碼便可:html
<t:base type="jquery,easyui,tools,DatePicker"></t:base> <#if callbackFlag == true> <link rel="stylesheet" href="plug-in/uploadify/css/uploadify.css" type="text/css" /> <script type="text/javascript" src="plug-in/plupload/plupload.full.min.js"></script> <script type="text/javascript" src="plug-in/tools/Map.js"></script> </#if>
也能夠直接改爲標籤式的寫法html5
<t:base type="jquery,easyui,tools,DatePicker"></t:base> <#if callbackFlag == true> <t:base type="uploadify"></t:base> </#if>
或者java
<t:base type="jquery,easyui,tools,DatePicker<#if callbackFlag == true>,uploadify</#if>"></t:base>