我就想知道 為什么有這么一句
String contenttype = part.getContentType();
int nameindex = contenttype.indexOf("name");
在part。getcontenttype()里找一個name干嘛
if (nameindex != -1)
conname = true;
System.out.println("CONTENTTYPE: " + contenttype);
if (part.isMimeType("text/plain") && !conname) {
bodytext.append((String) part.getContent());
判斷這個 contenttype.indexOf("name"); 有沒有,有什么用啊,沒看懂為啥要判斷這個。。。求大神~~~
uj5u.com熱心網友回復:
原來如果發送有圖片的話就有name屬性uj5u.com熱心網友回復:
3q~謝大哥轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/117461.html
標籤:Java相關
上一篇:請問一下下面這道題的代碼怎么寫
下一篇:學習小組結伴
