随笔分类 -  Razor

摘要:You need to write code this way. @Html.Raw("") Copy the below code and paste it into your view. it will work. @model IE... 阅读全文
posted @ 2015-05-03 19:20 dapeng888 阅读(181) 评论(0) 推荐(0) 编辑
摘要:HTML 中定义全局变量@{ int CurrentUserId =ViewBag.CurrentUserId; }JS中取值方式var CurrentUserId = parseInt(@Html.Raw(CurrentUserId)); 阅读全文
posted @ 2014-04-15 14:31 dapeng888 阅读(2394) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示