前台
linux_王爷
这个作者很懒,什么都没留下…
展开
-
js写了一个关于时间的定时器setinterval
setiner var timer; timer=setInterval("dat()",500); function dat(){ var date = new Date(); var time=date.getMinutes() + ':' + date.getSeconds() +原创 2017-09-19 12:16:25 · 3718 阅读 · 0 评论 -
window.location.href=传值的中文乱码解决方法
jsp:encodeURI() 函数可把字符串作为 URI 进行编码。var goodname=$("#select").val();window.location.href="goodAction_select.action?good.goodname="+encodeURI(encodeURI(goodname)); alert(goodname);act原创 2017-09-29 10:30:57 · 5788 阅读 · 0 评论 -
json得到数据在jsp页面实现分页
html 页面测试!DOCTYPE html> id name pass 一定有y页 xian ds页 dom03.js$(function(){ var user={"id":1001,"name":"zh","pass":"pa原创 2017-09-22 13:41:33 · 2032 阅读 · 0 评论 -
jQuery 的serialize()相当好用
$("#model_btn_add form").serialize()你只需要在将你的form表单序列化,其中要注意的是你表单中的属性name要与对应的类属性一致jsp;表单 用户 Password 女原创 2017-10-12 11:38:51 · 3958 阅读 · 0 评论