我想添加版权@’current_year’到我的页面的页脚(在cshtml文件)。我经常使用javascript,但由于我使用ASP.NET MVC 3我想使用ASP做到这一点。
我正在尝试建设像:
@response.write("Current Year: "&Year(Date))
但它没有在MVC 3中工作,我找不到解决方案是工作。
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。