2016年8月8日

表单序列化及编码问题

摘要: 1、encodeURI(encodeURI(decodeURIComponent($("#subForm").serialize(),true))) serialize()方法作用于一个JQuery对象,它能够将DOM元素内容序列化为字符串,用于ajax请求。通过使用serialize()方法,可以 阅读全文

posted @ 2016-08-08 18:11 shufeixue 阅读(329) 评论(0) 推荐(0) 编辑

路径问题

摘要: 1、pageContext.request.contextPath 随着不同的Web应用发布方式,绝对路径的值也不同。如Web应用发布为MyApp,则路径”/MyApp/images/title.gif”是正确的,但发布为另一应用时如MyApp2,这个路径就不对了 代码” ${pageContext 阅读全文

posted @ 2016-08-08 16:46 shufeixue 阅读(142) 评论(0) 推荐(0) 编辑

2016年8月5日

jQuery琐碎

摘要: 函数(以click事件为例)在jsp页面和js中的不同写法 onclick="getInfo(this);" function getInfo(obj){ var $this=$(obj); var serialNo=$this.find("input:hidden").val(); var index=$this.index()+1; } $(".family_list_lm").c... 阅读全文

posted @ 2016-08-05 15:59 shufeixue 阅读(103) 评论(0) 推荐(0) 编辑

jQuery文档加载事件

摘要: $(document).ready(handler) $().ready(handler) (this is not recommended) $(handler) 相当于: $(document).ready(function(){}) $().ready(function(){}) (this 阅读全文

posted @ 2016-08-05 15:08 shufeixue 阅读(154) 评论(0) 推荐(0) 编辑

微信,禁止分享页面

摘要: 关注微信公众号:CS尼克。我们一起学习计算机相关知识 阅读全文

posted @ 2016-08-05 10:40 shufeixue 阅读(1776) 评论(0) 推荐(0) 编辑

级联下拉列表

摘要: 省、市二级级联下拉列表 阅读全文

posted @ 2016-08-05 10:29 shufeixue 阅读(260) 评论(0) 推荐(0) 编辑

2016年7月27日

struts2 result随笔

摘要: 一、result:chain(从一个Action转发到另一个Action) chain结果类型有4个属性,分别是: actionName (default) - the name of the action that will be chained to namespace - used to de 阅读全文

posted @ 2016-07-27 10:06 shufeixue 阅读(323) 评论(0) 推荐(0) 编辑

2016年7月21日

rabbitMQ学习随笔

该文被密码保护。 阅读全文

posted @ 2016-07-21 16:38 shufeixue 阅读(3) 评论(0) 推荐(0) 编辑

导航