how to access the Model 开发者_JAVA百科Classes in Jquery in asp.net mvc ?
Model classes are part of server side. You can't just access them by jQuery (and any other client-side javascript)
u can always assign values of flat items (non complex types) to js variables using <%%> tags in ur views
var abc = '<%=Model.ABC%>';
now u can use abc as a javascript variable
精彩评论