2015年1月4日

Ajax请求数据

摘要: 关于ajax异步刷新的两个方式一、ajax的高层实现。 /*$.post("server.php",{bigname:type}, function(data){ var arr=data.split(","); $("#small option").remove(); ... 阅读全文

posted @ 2015-01-04 17:35 J2ee攻城狮 阅读(280) 评论(0) 推荐(0)

jsonp跨域访问数据

摘要: 实例一,使用 jquery 的 $.getJSON 方法//前端js :$("#selId").click(function() { $.getJSON("http://www.example.com/remote.php?callback=?", // callback=?参数是重点,会传递到后台... 阅读全文

posted @ 2015-01-04 17:31 J2ee攻城狮 阅读(138) 评论(0) 推荐(0)

导航