摘要: 1、通过jQuery发起Ajax请求 setInterval(调用的方法,每个多少毫秒发起)url:发送请求的地址type:请求方式cache:缓存(false每次都清空缓存)error:请求失败success:请求后回调函数 2、通过原生的XmlHttpRequest发起请求 服务器端代码: 阅读全文
posted @ 2019-06-17 20:02 零度放纵 阅读(227) 评论(0) 推荐(0)
摘要: 1 public static void main(String[] args) { 2 // json演示序列化和反序列化 3 User user = new User(0,"测试","0000",1); 4 String str = JSON.toJSONString(user); 5 System.out.print... 阅读全文
posted @ 2019-06-17 19:40 零度放纵 阅读(113) 评论(0) 推荐(0)