摘要: <script type="text/javascript"> $(function () { $('#uploadSubmit').click(function () { var file = $('#file')[0].files[0]; var fd = new FormData(); fd. 阅读全文
posted @ 2017-11-24 16:58 itvita 阅读(949) 评论(0) 推荐(0) 编辑
摘要: <input type="file" id="testUpload"> <img src="" id="img" alt=""> <script> // 前端只需要给input file绑定这个change事件即可(下面两个方法不需要修改)获取到图片 $('#testUpload').change( 阅读全文
posted @ 2017-11-24 16:41 itvita 阅读(809) 评论(0) 推荐(0) 编辑
摘要: <input id="file" type="file"> <img id="img" style="max-height: 300px;"> <textarea id="textarea" style="width: 100%;height: 300px;"></textarea> <script 阅读全文
posted @ 2017-11-24 15:39 itvita 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 1Sring mvc 中可以通过注解 : @RequestHeader ("host") String hostName 2httpservletrequest request request.getHeader("Host") //遍历全部 Enumeration headerNames = re 阅读全文
posted @ 2017-11-24 09:12 itvita 阅读(10292) 评论(0) 推荐(0) 编辑