第一次提交
启动了
POST /message HTTP/1.1
x-requested-with: XMLHttpRequest
Accept-Language: zh-cn
Referer: http://localhost/index.html
Accept: */*
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
Host: localhost
Content-Length: 54
Connection: Keep-Alive
Cache-Control: no-cache
+++++++++++++++++++++++++++++++++++++++++++++++++
请求方式==>POST请求==>/message请求参数是==>
第二次提交
启动了
POST /message HTTP/1.1
x-requested-with: XMLHttpRequest
Accept-Language: zh-cn
Referer: http://localhost/index.html
Accept: */*
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
Host: localhost
Content-Length: 53
Connection: Keep-Alive
Cache-Control: no-cachemess=%3Cp%3E%0A%09fwf%3C%2Fp%3E%0A&time=1316225778015
+++++++++++++++++++++++++++++++++++++++++++++++++
请求方式==>POST请求==>/message请求参数是==>time==1316225778015mess==%3Cp%3E%0A%09fwf%3C%2Fp%3E%0A
jquery的代码$("#ad").click(function(){
$.post("/message",
        {mess:editor.getData(),time:new Date().getTime()},
         function(date){
               editor.setData("");
      addmessage(date);
      editor.focus();
});

})