java 斜槓轉義問題

當我把一段  路徑字符串  替換到前臺接受的時候   字符串中的 \  消失了web 例如   apache-tomcat-8.5.27\webapps\bgb\imgPath    apache  \    消失不見tomcat 解決方法:將字符串中的"\"替換成"\\"app 例如:webapp String pic_Path=" apache-tomcat-8.5.27\webapps\bg
相關文章
相關標籤/搜索