How to get JSON object from Razor Model object in javascript

前端 未结 5 1803
遇见更好的自我
遇见更好的自我 2020-12-02 08:09

In viewmodel object, below is the property:

  public IList CollegeInformationlist { get; set; }

In VIEW, javas

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-02 08:50

    Pass the object from controller to view, convert it to markup without encoding, and parse it to json.

    @model IEnumerable
    
    @section Scripts{
        
    }
    

提交回复
热议问题