我写了一个 jquery ajax 代码来发表评论..
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)
{}
}
当我使用 'like =durgesh'rao 在 txt_PostComment 中发送数据时,它显示错误
请求负载:{评论:'durgesh'rao',LectureID:'1250',CategoryID:'2',Author_Id:'135'}
有什么方法可以用' ???