我想将 java scrip var 保存到 asp.net mvc Temp-data 但它给出了语法错误
$(".PopReviewNo").click(function () {
if (($('textarea').val().length == 0)) {
$('.comm').addClass("layout");
}
else {
$(".comm").removeClass("layout");
var comment = $("#comme").val();
**@TempData["CommentForPop"]= $("#comme").val();** ///Check this one
$.fancybox({
'transitionIn': 'elastic',
'transitionOut': 'elastic',
'easingIn': 'easeOutBack',
'easingOut': 'easeInBack',
'width': 850,
'height': 394,
href: "/Stores/PopReview/@Model.Company.id?comment=" + comment,
'type': 'iframe'
});
}
});