随笔分类 -  json

摘要:我发给你的url类似http://localhost/test.php?random_str=0.045112134190276265 //random_str为固定字段 原样返回你返回给我的类似 _ape_json_.back && _ape_json_.back({just:"fuckof", random_str:0.045112134190276265}) //红色部分为固定字段 0.045112134190276265为我传给的值 阅读全文
posted @ 2011-08-25 11:49 wangkangluo1 阅读(472) 评论(0) 推荐(0) 编辑
摘要:改变以往ajax回掉函数的问题:文件:wkl_ajax.js示例代码:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" co 阅读全文
posted @ 2011-08-24 22:12 wangkangluo1 阅读(589) 评论(0) 推荐(0) 编辑
摘要:ajax json 模板<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; 阅读全文
posted @ 2011-07-11 13:54 wangkangluo1 阅读(562) 评论(0) 推荐(0) 编辑
摘要:json 需替换 特殊字符串 sourceStr = sourceStr.Replace("\b", "\\\b"); sourceStr = sourceStr.Replace("\t", "\\\t"); sourceStr = sourceStr.Replace("\n", "\\\n"); sourceStr = sourceStr.Replace("\f", "\\\f"); sourceStr = sourceStr.Rep 阅读全文
posted @ 2011-07-10 15:18 wangkangluo1 阅读(3871) 评论(0) 推荐(0) 编辑
摘要:search_callback({ "result":50000, "pageAct":500, "useTime":12.861029, "body": [ { "post_title":"日本留学生谈日本\“大学泡沫化\”", "post_summary":"日本留学生谈日本\“大学泡沫化\”恰好,前几天我去采访日本早稻田大学公共经营研究科教授福岛淑彦时谈到这个...", "post_url":"htt 阅读全文
posted @ 2011-06-12 21:45 wangkangluo1 阅读(258) 评论(0) 推荐(0) 编辑
摘要:var oCar = { "color": "red", "doors" : 4, "paidFor" : true };复杂数据格式:var company = {name: "Microsoft",product: "softwares",chairman: {name: "Bill Gates", age: 53, Married: true},employees: [{name: "Angel", age: 26, Marrie 阅读全文
posted @ 2011-06-12 21:42 wangkangluo1 阅读(1038) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示