阅读背景:

将c#字符串数组序列化为JSON数组

来源:互联网 

i have the following code in my _Layout.cshtml file. The idea is that in my javascript code some items about the security are filled in. LoggedIn and username are obviously no problem, but the way the roles are put in the javascript is wrong. The Roles is simply a string[] (that should become a JSON array. i have the following code in my _Layout.cshtml




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: