网站建设站点标题在什么位置,在安阳想建个网站怎么做,做项目管理的网站,html简单网页模板所以我有能力在我的网站上发表评论。用户进入场命中“后”和我阿贾克斯评论回到其在该行动的结果在MVC中使用jQuery模板进行HTML编码的Json对象public ActionResult PostComment(Comment NewComment){var repository GetRepository();var player GetPlayer();//we have this …所以我有能力在我的网站上发表评论。用户进入场命中“后”和我阿贾克斯评论回到其在该行动的结果在MVC中使用jQuery模板进行HTML编码的Json对象public ActionResult PostComment(Comment NewComment){var repository GetRepository();var player GetPlayer();//we have this stuffNewComment.Created DateTime.Now;NewComment.Updated NewComment.Created;NewComment.Live true;NewComment.Player player;repository.Add(NewComment);return new JsonResult { Data new { Success true, Comment new CommentSummary(NewComment, player) } };}这是reuturned我的jQuery处理它的数据库它使用jQuery的模板显示在评论页面$.post(/comments/PostComment, data, function(json) {if(json.Success){var newComment [{Id: json.Comment.id,postedOn: json.Comment.postedOn,postedBy: json.Comment.postedBy,body: json.Comment.body}];/* Compile markup string as a named template */$.template(TmplComment, $(#CommentTemplate).html());/* Render the named template */$.tmpl(TmplComment, newComment).prependTo(#AllComments);//Do some tidying$(#Comments_HasComments).show();$(#Comments_HasNoComments).hide();$(#frmPostComment textarea[namecomment]).val()//go to your comment$(#Comment_ json.Comment.id).animate({backgroundColor: #F4FF8C}, 1000).animate({backgroundColor: #ffffff}, 1000);location.href #Comment_ json.Comment.id;}});对我有任何进入用户输入回发下来的时候将被转换为但jQuery的模板把他们拖到页面上在众目睽睽之下而不是被只是部分HTML编码问题的一些原因的代码有什么我需要打开/关闭2011-04-05Steve