摘要: JS中 JSON.parse( your_string ); json = eval("(" + str + ")"); 或 Jquery中用 $.parseJSON( your_string ); 阅读全文
posted @ 2015-11-23 11:43 xzcl 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 1. XMLHttpRequest 是 AJAX 的基础 所以首先要创建 XMLHttpRequest xmlhttp=new XMLHttpRequest(); 因考虑有一些浏览器兼容性问题 不支持 XMLHttpRequest 所以这样创建 var xmlhttp;if (wind... 阅读全文
posted @ 2015-11-23 09:16 xzcl 阅读(114) 评论(0) 推荐(0) 编辑