摘要: $.ajax({ type: "post", dataType:"text", url: "sugController_toAjax", contentType: "application/x-www-form-urlencoded; charset=utf-8", data: "index="+i 阅读全文
posted @ 2017-10-13 11:52 ly.never.stop 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 换浏览器或者设置 type: "post", dataType:"text", url: "sugController_toAjax", 阅读全文
posted @ 2017-10-13 11:48 ly.never.stop 阅读(455) 评论(0) 推荐(0) 编辑
摘要: jsp中: $(function(){ $("#but").click(function(){ $.post("ajax",function(data){ $("#msg").html(data); }) }) }); $(function(){ $("#but").click(function() 阅读全文
posted @ 2017-10-12 10:41 ly.never.stop 阅读(74) 评论(0) 推荐(0) 编辑
摘要: struts.xml: <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://st 阅读全文
posted @ 2017-10-12 10:37 ly.never.stop 阅读(329) 评论(0) 推荐(0) 编辑
摘要: function submit() { var textValue = document.getElementById("id").value; //这里的id是文本输入框的id //使用下面的方法进行页面跳转,页面跳转的时候可以带参数,所以就可以提交数据 window.location.href= 阅读全文
posted @ 2017-10-12 08:55 ly.never.stop 阅读(1362) 评论(0) 推荐(0) 编辑
摘要: <a href="<%=basePath%>user!logout" onclick="if(confirm('确定退出?')==false)return false;">退出</a> 阅读全文
posted @ 2017-10-12 08:53 ly.never.stop 阅读(1032) 评论(0) 推荐(0) 编辑
摘要: 我是专业学习java的,java的核心思想就是面向对象。 何为对象,我的理解就是一个具体的个体,而这个个体有一定的特征(即为对象中的属性),这个对象可以做出一定的行为(即为对象中的方法)。在编写代码时,我们要使用一些特定的方法(函数)来实现某些功能,那么就需要对象来调用,(一般情况下,非常公用的方法 阅读全文
posted @ 2017-10-12 08:51 ly.never.stop 阅读(131) 评论(0) 推荐(0) 编辑
摘要: // 验证中文名称 function isChinaName(name) { var pattern = /^[\u4E00-\u9FA5]{1,6}$/; return pattern.test(name); } // 验证手机号 function isPhoneNo(phone) { var p 阅读全文
posted @ 2017-10-11 18:20 ly.never.stop 阅读(133) 评论(0) 推荐(0) 编辑