![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
web前端
shaochengand
这个作者很懒,什么都没留下…
展开
-
扩展IE中一些不兼容的方法
/** * 扩展startWith方法 * @param str * @return */String.prototype.startWith=function(str){if(str==null||str==""||this.length==0||str.length>this.length) return false;if(this.substr(0,str.l原创 2013-04-23 15:33:51 · 577 阅读 · 0 评论 -
基于注解的SpringMVC简单介绍
SpringMVC是一个基于DispatcherServlet的MVC框架,每一个请求最先访问的都是DispatcherServlet,DispatcherServlet负责转发每一个Request请求给相应的Handler,Handler处理以后再返回相应的视图(View)和模型(Model),返回的视图和模型都可以不指定,即可以只返回Model或只返回View或都不返回。在使用注解的Sprin转载 2015-03-09 19:21:34 · 422 阅读 · 0 评论 -
Velocity基本语法
一、基本语法1、"#"用来标识Velocity的脚本语句,包括#set、#if 、#else、#end、#foreach、#end、#iinclude、#parse、#macro等;如:#if($info.imgs)#else#end2、"$"用来标识一个对象(或理解为变量);如如:$i、$msg、$TagUtil.options转载 2013-09-16 16:45:08 · 501 阅读 · 0 评论 -
TOMCAT下配置项目路径
对工程的部署一般是将工程的压缩文件放在tomcat安装目录的webapps下,访问时通过键入:http://localhost:8080/xx(假定为本机访问,xx是部署时的应用工程的访问名字)。 而如果直接键入:http://localhost:8080出来的将是tomcat自带的欢迎页面,如何让键入http://localhost:8080出来的是自己的应用工程的页面呢?在Tomcat转载 2014-11-12 09:43:41 · 882 阅读 · 0 评论 -
No WebApplicationContext found: no ContextLoaderListener registered错误
运行结果报错:java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicat转载 2014-08-15 13:22:08 · 1093 阅读 · 0 评论 -
怎样让div中的字上下左右居中
让我居中使line-height和height一样就能让字上下居中原创 2013-12-25 17:17:10 · 867 阅读 · 0 评论 -
js获取通过ajax返回的map型的JSONArray
for(var i in datares){ if (datares.hasOwnProperty(i)) { sel.append(""+datares[i].deptname+""); }}原创 2014-01-09 15:26:46 · 926 阅读 · 0 评论 -
WdatePicker日历控件使用方法
1. 跨无限级框架显示 无论你把日期控件放在哪里,你都不需要担心会被外层的iframe所遮挡进而影响客户体验,因为My97日期控件是可以跨无限级框架显示的 示例2-7 跨无限级框架演示可无限跨越框架iframe,无论怎么嵌套框架都不必担心了,即使有滚动条也不怕 2. 民国年日历和其他特殊日历 当年份格式设置为yyy格式时,利用年份差量属性yearOffset(默转载 2014-01-03 14:48:31 · 467 阅读 · 0 评论 -
遮罩层
原创 2013-12-29 00:36:52 · 469 阅读 · 0 评论 -
解决前台传到后台中文参数乱码
new String(req.getParameter("nsrmc").getBytes("ISO-8859-1"), "UTF-8");原创 2013-11-14 17:23:50 · 960 阅读 · 0 评论 -
提交含有CKEditor的表单
在提交事件中加入这一句for ( instance in CKEDITOR.instances ) CKEDITOR.instances[instance].updateElement();原创 2013-10-14 17:11:43 · 594 阅读 · 0 评论 -
解决form上传文件后提示保存action
必须以html格式返回json数据即response.setContentType("text/html; charset=utf-8");原创 2013-10-14 10:14:34 · 870 阅读 · 0 评论 -
js中生成map对象
var Map = function(){ this._entrys = new Array(); this.put = function(key, value){ if (key == null || key == undefined) { return; } var index = this._getInde转载 2013-04-23 15:35:20 · 808 阅读 · 0 评论 -
如何在body中放frameset
因frameset和body平级 所以不能将frameset放在body里 可以先在一个页面里放个iframe,再定向到一个页面,这个页面里放frameset pages/main.jsp" style="width:100%;height:100%" frameBorder="0">原创 2013-04-23 15:40:31 · 1306 阅读 · 0 评论 -
默认打开IE10、IE11就强制使用IE8/IE9浏览模式或更低版本的浏览模式
我们会经常遇到,升级windows8、windows8.1后,IE的兼容性发觉变的不是很好,如某些网页浏览卡顿,不正常;如网银的控件安装不了等等。主要的原因很多网站或是网银控件没有针对新的IE来开发或是重新更新,所以出现浏览网页某些功能不兼容,控件装不上的情况。那么,问题来了:我们怎样才能正常浏览网页或是安装上我们的网银控件呢?这时我们就需要降低IE的版本来实现兼容。有两种方法,一转载 2017-06-20 11:29:17 · 32163 阅读 · 0 评论