开发者

how to access the Model Classes in J query?

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜