摘要: SVN服务器搭建和使用(一) 阅读全文
posted @ 2015-11-17 19:31 星辰之力 阅读(113) 评论(0) 推荐(0)
摘要: 1. 需求背景 需求:spring MVC框架controller间跳转,需重定向。有几种情况:不带参数跳转,带参数拼接url形式跳转,带参数不拼接参数跳转,页面也能显示。本来以为挺简单的一件事情,并且个人认为比较常用的一种方式,一百度全都有了,这些根本不是问题,但是一百度居然出乎我的意料,一堆都... 阅读全文
posted @ 2015-11-17 19:09 星辰之力 阅读(1826) 评论(0) 推荐(0)
摘要: 本文为大家讲解下Javascript selection的兼容性写法,感兴趣的朋友可以参考下function getSelectedText() { //this function code is borrowed from: http://www.codetoad.com/javascript_g... 阅读全文
posted @ 2015-11-17 17:36 星辰之力 阅读(783) 评论(0) 推荐(0)
摘要: input类型为file时,博客园,chrome,FF和IE8的fakepath问题处理方法 阅读全文
posted @ 2015-11-17 17:35 星辰之力 阅读(423) 评论(0) 推荐(0)
摘要: jquery ajax局部加载方法介绍 阅读全文
posted @ 2015-11-17 17:34 星辰之力 阅读(133) 评论(0) 推荐(0)
摘要: @RequestMapping(value = "/upload") public String handleFormUpload(MultipartHttpServletRequest request){ String b = request.getParameter("a"); Syst... 阅读全文
posted @ 2015-11-17 17:33 星辰之力 阅读(286) 评论(0) 推荐(0)
摘要: 【uploadify3.1使用二】批量文件、图片上传 阅读全文
posted @ 2015-11-17 17:32 星辰之力 阅读(155) 评论(0) 推荐(0)
摘要: 在使用控件上传文件时,有时会需要获取文件本地路径展示给客户,这时可以通过这样的方式获取文件本地路径: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)