4
我怎样才能把if
块内的javascript?ASP.NET MVC - 剃刀和JavaScript
@if(TempData["notification-message"] != null) {
$('#notification').jnotifyAddMessage({
text: '@TempData["notification-message"]',
permanent: false
});
}
我得到bad compile constant value
。