2013年4月1日
摘要: 意外发现Jquery调用ajax时候,参数类型为JSON,传参数时候大家一般喜欢拼接字符串,可能有时候会拼接错误,大家可以参考一下底下代码,相信大家在以后使用时候会做出抉择的。其中需要注意的是如果参数涉及中文。那么一定要设置contentType字符集类型。 1 function AddComment(content) { 2 var comment = {}; 3 comment.threadId = $("#div_thread_id").html(); 4 comment.groupId = $("#div_group_id").html(); 5 阅读全文
posted @ 2013-04-01 10:36 朝扬 阅读(583) 评论(0) 推荐(0) 编辑