ASP.NET MVC 3 Razor : Initialize a JavaScript array

后端 未结 2 427
醉话见心
醉话见心 2020-12-15 05:14

What would be the prefered way to initialize a JS array in ASP.NET MVC 3 with Razor with a value I have in my model/view model ?

For example to initialize an array o

2条回答
  •  抹茶落季
    2020-12-15 05:50

    I just happen to do this yesterday and came up with this solution (if you want it to look like the output you have in your question - I was using this with jqplot):

    
    

提交回复
热议问题