AJAX中的DATA以JSON的格式发送则后台需要用以JSON格式接收,
以data:
{
ROW_ID:ROW_ID,
TITLE: TITLE,
CONTENT : CONTENT,
TIME: TIME,
AUTHOR: AUTHOR,
READ_NUMBER: READ_NUMBER,
LIKE_NUMBER: LIKE_NUMBER,
TYPE: TYPE,
INTRO:INTRO,
JUMP_LINK: JUMP_LINK,
TAG: TAG,
ISCOLLECTION: ISCOLLECTION,
END_DATE: END_DATE,
PRIZE_NAME: PRIZE_NAME,
PRIZE_DESC: PRIZE_DESC,
M_TEMPLATE:M_TEMPLATE,
M_ACTIVE:M_ACTIVE,
M_PRIZE:M_PRIZE,
M_DESC:M_DESC
},
键值对格式发送则context.Request.Form["row_id"]直接可以获取
原文链接:https://www.f2er.com/ajax/162180.html