我在窗体的文本区域使用内嵌编辑,它应该是,但当文本是字符串包含&登录它只能保存到&符号。所以我怎么可以在JavaScript的URL编码&登录,所以我的PHP脚本得到它,并保存在mysql为&再次。 这是我当前的代码和desc是可能包含&迹象偶尔发送字符串&登录ajax jquery post
var field_userid = $(this).attr("id") ;
var desc = $(this).val() ;
$.post('includes/update-property-modal.php' , field_userid + "=" + desc, function(data){ });
你试过设置'processData'假? – skip405 2015-03-13 13:52:39
我认为你应该尝试使用[jQuery.serialize](http://api.jquery.com/serialize/)来获取在Ajax中发送的值。 – vdubus 2015-03-13 13:57:49
发送数据=> {{field_userid:desc}' – lshettyl 2015-03-13 14:01:40