public void uploadImg() {
UploadFile file = null;
if (!getRequest().getMethod().equals(“OPTIONS”))//先判断请求非options
file = getFile(“file”);//不是options请求在getFile()
}
跨域
最新推荐文章于 2019-09-11 17:17:14 发布
public void uploadImg() {
UploadFile file = null;
if (!getRequest().getMethod().equals(“OPTIONS”))//先判断请求非options
file = getFile(“file”);//不是options请求在getFile()
}