Fight With Me!!!

导航

2017年3月24日 #

json转字符串 —— jsonObj.toJSONString()与JSON.stringify(jsonObj)

摘要: 上面的, 只能在IE8或者以上, Firefox下运行 toJSONString() , 必须要引入 https://github.com/douglascrockford/JSON-js/blob/master/json.js 局限性都比较大 阅读全文

posted @ 2017-03-24 12:28 nickTimer 阅读(1478) 评论(0) 推荐(0) 编辑

JSONP跨域提交表单

摘要: Untitled Page 阅读全文

posted @ 2017-03-24 12:26 nickTimer 阅读(215) 评论(0) 推荐(0) 编辑

jquery ajaxSubmit

摘要: $('#form1').submit(function() { $(this).ajaxSubmit({ dataType: "jsonp", success: function(data) { // data 保存提交后返回的数据,一般为 json 数据 // 此处可对 data 作相关处理 al 阅读全文

posted @ 2017-03-24 10:57 nickTimer 阅读(192) 评论(0) 推荐(0) 编辑