swagger-ui提交请求,请求不包含name值,造成后台无法进行接受参数. @Operation(description = "上传文件",tags = "上传") @PostMapping(consumes = MediaType.MULTIPART_FORM_DATA_VALUE) public BaseResponseDataVo<UploadFileModel> uploadFile(@Parameter(style = ParameterS…
对一个文件域(input type=file)使用了验证后,我们总会希望把文件域中的值给清空了,在IE中,由于安全设置的原因,是不允许更改文件域的值的,接下来为大家介绍一下解决方法 一般来说,在对一个文件域(input type=”file”)使用了验证后,我们总会希望把文件域中的值给清空了(否则错误的文件仍然会被提交),而在IE中,安全设置的原因,是不允许更改文件域的值的(也就是不能使用val(“”)) 那么很显然,我们就只能换个思路,把这个input元素复制一个,然后将原来的删除. 在IE下…
django request对象和HttpResponse对象 HttpRequest对象(除非特殊说明,所有属性都是只读,session属性是个例外) HttpRequest.scheme 请求方案(通常为http或https) HttpRequest.body 字节字符串,表示原始http请求正文 HttpRequest.path 字符串,表示请求的页面的完整路径,不包含域名 HttpRequest.get_host() 获取主机地址 HttpRequest.path_info 在某些Web…
<input id="test"> var ele = document.getElementById("test"); if("placeholder" in ele){ alert("支持");//是否支持ie浏览器 }else{ alert("bu支持"); }…
今天做项目时发现,在手机端用placeholder时,Android手机可以垂直显示:ISO则不能使placeholder垂直;解决办法: .gcddfadf-con-pay-1 input::-webkit-input-placeholder{ font-size:0.3rem; line-height: 1.0rem;}.gcddfadf-con-pay-1 input:-ms-input-placeholder{ font-size:0.3rem; line-height: 1.0rem;…
input::-webkit-input-placeholder{ color:#e8e8e8; } input::-moz-placeholder{ /* Mozilla Firefox 19+ */ color:#e8e8e8; } input:-moz-placeholder{ /* Mozilla Firefox 4 to 18 */ color:#e8e8e8; } input:-ms-input-placeholder{ /* Internet Explorer 10-11 */ c…
<input name="selectTicket" class="selectTic" data-property="${couponDetai.id }"  type="checkbox"  value="${vo.discount }" onclick="selectTicket();"> <script> function selectTicket(){…
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <script type="text/javascript"> function huoqu(){ var G=document.getElementById('value').value; alert(G); } &l…
1.如果有代码环境,直接在AndroidManifest.xml中查找: package值: Activity值: 2.如果没有开发代码,直接用命令获取: cmd进入到 android-sdk-windows\build-tools\24.0.0 相关版本下面(用那个版本都可以的),用命令"aapt.exe dump badging LocationOfApp",然后就能查看到该安装包的相关信息, aapt.exe dump badging D:\apk\kingyee.apk(红色是…
1.改diagram中连线的颜色:redraw一下就OK // Change the Line Green diagram.connections[indexS].redraw({ stroke:{ color:"green" } }); diagram.connections[indexD].redraw({ stroke:{ color:"green" } }); 2.更新diagram的dataSource // 获取diagramvar diagram =…