4
ブロックにif
のjavascriptを挿入するにはどうすればよいですか?ASP.NET MVC - Razor and JavaScript
@if(TempData["notification-message"] != null) {
$('#notification').jnotifyAddMessage({
text: '@TempData["notification-message"]',
permanent: false
});
}
私はbad compile constant value
を取得しています。