![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ajax
文章平均质量分 50
power0405hf
这个作者很懒,什么都没留下…
展开
-
Ajax初级 json_encode
Ajax:Asynchronous JavaScript and XML Ajax用来异步通信,用户不需要长长的等待。 实现也很简单,主要用到XMLHttpRequest对象 HTML代码: City: onChange="callServer();" /> State: onChange="callServer();" /> Zip Cod原创 2015-04-04 14:50:48 · 652 阅读 · 0 评论 -
js 中读取JSON的方法探讨
js读取JSON的方法我接触到的有两种: 方法一:函数构造定义法返回 var strJSON = "{name:'json name'}";//得到的JSON var obj = new Function("return" + strJSON)();//转换后的JSON对象 alert(obj.name);//json name 方法二:js中著名的eval函数 var strJS转载 2015-04-25 22:06:15 · 473 阅读 · 0 评论 -
Ajax+SpringMVC requestBody
ajax+Spring MVC 经验证,上文写的是比较正确的,所以转过来保存一下.传JSON对象前端function test () { var param = {username : "yitop"}; $.ajax({ timeout : 20000, type : "POST", dataType : "JSON",转载 2017-11-26 16:21:51 · 1303 阅读 · 0 评论