上一页 1 ··· 227 228 229 230 231 232 233 234 235 ··· 340 下一页
摘要: 在使用控件上传文件时,有时会需要获取文件本地路径展示给客户,这时可以通过这样的方式获取文件本地路径:document.getElementById('file_upl').value这在IE7及以前的IE浏览器版本上都没有问题,但是到IE8上面,就不行了,在IE8中你只会获取到这样的路径:"C:\f... 阅读全文
posted @ 2015-11-17 14:51 星辰之力 阅读(1273) 评论(0) 推荐(0)
摘要: js给action传真是地址的时候,处于安全,传到action中 浏览器会改变路径变为C:\fakepath\ftp.txt,但是原始路径却是C:\Documents and Settings\Administrator\桌面\ftp.txt下面就是获得原始路径的方法var url = getPat... 阅读全文
posted @ 2015-11-17 11:15 星辰之力 阅读(3091) 评论(0) 推荐(0)
摘要: //js获取项目根路径,如: http://localhost:8083/uimcardprjfunction getRootPath(){ //获取当前网址,如: http://localhost:8083/uimcardprj/share/meun.jsp var curWwwPat... 阅读全文
posted @ 2015-11-17 11:11 星辰之力 阅读(659) 评论(0) 推荐(0)
摘要: 在html中如上面的代码,用文件上传对话框选择文件后,如果选择"D:\\temp\file\test.txt"文件,alert(filename)却是"C:\\fakepath\test.txt"这是为什么?我想要取得原本的文件路径及文件名,应该怎么办?先谢谢各位了。input的时候把onchang... 阅读全文
posted @ 2015-11-17 11:10 星辰之力 阅读(60729) 评论(2) 推荐(0)
摘要: System.getProperty("catalina.base"),服务器配置目录 阅读全文
posted @ 2015-11-17 10:39 星辰之力 阅读(1069) 评论(0) 推荐(0)
摘要: The server refused this request because the request entity is in a format not supported by the requested resource for the requested method1、Spring Mvc... 阅读全文
posted @ 2015-11-16 14:34 星辰之力 阅读(303) 评论(0) 推荐(0)
摘要: The server refused this request because the request entity is in a format not supported by the requested resource for the requested method1、Spring Mvc... 阅读全文
posted @ 2015-11-16 14:34 星辰之力 阅读(209) 评论(0) 推荐(0)
摘要: 使用jquery提交,比如monthIncome的值是一个数组,在Java里用request.getParameterValues("monthIncome");取不到值,要这样才行request.getParameterValues("monthIncome[]")。如果使用struts又... 阅读全文
posted @ 2015-11-16 14:19 星辰之力 阅读(287) 评论(0) 推荐(0)
摘要: jquery实现漂亮文件上传表单样式 阅读全文
posted @ 2015-11-14 16:55 星辰之力 阅读(1367) 评论(0) 推荐(0)
摘要: 例如:当我们在做批量添加或者更新时,在Controller层接收表单数据的问题!我们做一个对用户批量添加的实验!用户Model:public class User { //用户名 private String username; //密码 private Strin... 阅读全文
posted @ 2015-11-14 16:26 星辰之力 阅读(416) 评论(0) 推荐(0)
上一页 1 ··· 227 228 229 230 231 232 233 234 235 ··· 340 下一页