ajax post 遇到url長度太長的問題
把url和參數分開帶 不要加在一起
用data存參數 和url分開
Instead of putting the data on the URL you should be putting it in the body of a POST request. You need to add a
data
value to the object you're passing to the ajax function call. Like this:$.ajax({
url: url, type:"POST", data:{pcontent: $(pcontent).serialize()
}
沒有留言:
張貼留言