摘要: var str = '{"name":"jack","wife":"rose","friend":"iceMountain"}';// 如果 要把他变为 js对象 必须 调用一个 方法// 调用 JSON 对象的 parse方法 可以讲 json 格式的字符串 转化为 对应的 js对象// 不管是 数组 还是 对象 都可以使用该方法转化var jsObj = JSON.parse(str);// ... 阅读全文
posted @ 2018-05-22 23:24 V仔BOKE 阅读(189) 评论(0) 推荐(0) 编辑
摘要: //html中ajax注册事件响应报文要改成// 注册事件ajax.onreadystatechange = function () { if (ajax.readyState==4 && ajax.status==200) { // 知道返回的是 xml console.log(ajax.responseXML); // 获取xml中的document对象哦 ... 阅读全文
posted @ 2018-05-22 15:19 V仔BOKE 阅读(139) 评论(0) 推荐(0) 编辑