![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Ajax
文章平均质量分 89
iteye_19399
这个作者很懒,什么都没留下…
展开
-
经典面试题
public class ThreadMethod { public static boolean f =false; public static void main(String[] args) { // TODO Auto-generated method stub ThreadMethod t = new ThreadMethod(); A1 a = t.new A...原创 2012-08-20 23:47:08 · 258 阅读 · 0 评论 -
Ajax 乱码问题
$.ajax({dataType:'json',type:'POST',url:'http://localhost/test /test.do',data:{id:1,type:'商品'} ,success:function(data){ } } ); 问题: 提交后后台action程序时,取到的type是乱码 解决方法: 方法一:提交前采用encodeUR...原创 2012-06-13 17:16:57 · 53 阅读 · 0 评论 -
做一个AJAX显示数据动态刷新的例子,后台可以用随机数产生数据,前台动态显示,1秒1次...
var timerID = 0; window.onload = function(){ GetRecentInfo(); timerID = window.setInterval("GetRecentInfo()",1000 ); } 2.创建提出请求 function GetRecentInfo() { try{ XMLhttpObject = new XMLHttpR...原创 2012-06-15 13:25:31 · 292 阅读 · 0 评论