Web項目去掉Js檔案紅叉

來源:互聯網
上載者:User

標籤:des   style   blog   http   java   color   檔案   io   

項目用到jquery,但將Jquery拷進去後,js檔案有個紅叉,看上去非常不爽。如:

解決方案:

1.找到項目下的.project檔案

  

2.去掉Javascript驗證

 1 <?xml version="1.0" encoding="UTF-8"?> 2 <projectDescription> 3     <name>Struts2_Jquery_Json</name> 4     <comment></comment> 5     <projects> 6     </projects> 7     <buildSpec> 8         <!--   9         去掉JavaScript驗證10         <buildCommand>11             <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>12             <arguments>13             </arguments>14         </buildCommand>15         -->16         <buildCommand>17             <name>org.eclipse.jdt.core.javabuilder</name>18             <arguments>19             </arguments>20         </buildCommand>21         <buildCommand>22             <name>org.eclipse.wst.common.project.facet.core.builder</name>23             <arguments>24             </arguments>25         </buildCommand>26         <buildCommand>27             <name>org.eclipse.wst.validation.validationbuilder</name>28             <arguments>29             </arguments>30         </buildCommand>31     </buildSpec>32     <natures>33         <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>34         <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>35         <nature>org.eclipse.wst.common.project.facet.core.nature</nature>36         <nature>org.eclipse.jdt.core.javanature</nature>37         <nature>org.eclipse.wst.jsdt.core.jsNature</nature>38     </natures>39 </projectDescription>

3.修改.project檔案後,需要重新拷貝js檔案到項目中

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.