我在窗體的文本區域使用內嵌編輯,它應該是,但當文本是字符串包含&登錄它只能保存到&符號。所以我怎麼可以在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