--ze6hbLXgtpQbZnvTC98zPbfLo3Zr_357l55nxxContent-Disposition: form-data; name="expressDealId"Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bit111209511524_1--ze6hbLXgtpQbZnvTC98zPbfLo3Zr_357l55nxxContent-Disposition: form-data; name="expressCompanyId"Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitwu023shangcheng--ze6hbLXgtpQbZnvTC98zPbfLo3Zr_357l55nxx--例如上述字符串,怎样能获取到name="expressDealId" 111209511524_1name="expressCompanyId" wu023shangcheng
2 回答
互换的青春
TA贡献1797条经验 获得超6个赞
先用换行符把字符串分解成字符串数组,FOR循环,然后如果有name关键字就截取name的值(最好是正则表达式),然后I+3(或者判断Content-Transfer-Encoding关键字的下一个循环)取值
- 2 回答
- 0 关注
- 429 浏览
添加回答
举报
0/150
提交
取消