コメントをポーズするjqueryajaxコードを作成しました。
function PostComment()
{
$.ajax({
type :"POST",
url:PageUrl+'Post_LectureComment',
data:"{Comment:'"+$('#txt_PostComment').val()+"',LectureID:'"+87+"',CategoryID:'"+2+"',Author_Id:'"+ 78+"' }",
contentType: "application/json; charset=utf-8",
dataType: "json",
success:SuccessHandler ,
});
function SuccessHandler(data)
{}
}
=durgesh'raoのように'を使用してtxt_PostCommentでデータを送信すると、エラーが表示されます
ペイロードのリクエスト:{コメント:'durgesh' rao'、LectureID: '1250'、CategoryID: '2'、Author_Id: '135'}
'???でデータを送信する方法はありますか?