jjzjj

javascript - 从模型中获取数组以查看

在我的模型中,我有一个int对象和一个bool数组:publicclassmymodel{publicintRound{get;set;}publicBoolean[]lstLabs{get;set;}}在我看来我是这样写的:varobjModel={Round:"@Model.Round",lstLabs:"@Model.lstLabs"};我只得到Round(int对象)的值,但我无法得到数组,我只是得到这个:lstLabs:System.Boolean[],我试过:lstLabs:@Model.lstLabs.slice()但它没有用,我得到了同样的东西......谁能帮帮我?提