阅读背景:

用于客户端和服务器的ASP.NET MVC模板

来源:互联网 

Is this possible? For an example of what I want to achieve, take the Facebook commenting system. Existing comments are rendered on the server, but if I leave a new comment, it is created using AJAX on the client. Ideally, I'd like to store the template for the comment in only one place, and have access to it on both the server (rendered by Razor) and on the client (rendered in Javascript using JSON returned by the server).Is this possible? For an example of what I want




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: