var a = (new FollowGroupService()).GetListByCompanyId(user.CompanyId);
var c = (new CompanyService()).GetFollowCompany(user.UserId, a[0].GroupId, true);
//json.Data = new { iserror = false, follwCom = common.toJSON(c, "data") };
ViewBag.FollCompany = common.toJSON(c, "data");
ViewData["Group"] = a;
现在想在页面js文件中条用已经json化的ViewBag或者ViewData
请问如何弄,下面的貌似不行哇
$(function () {
var Group = ViewData["Group"];
alert(Group)