如何在ASP.NET Core中使用Ajax创建评论列表?

i want to make a comments list which i want to show for example 5 comments when page loaded. Like a dropdown list that has 5 items(comments) in it and has a button named Load More i want something like when the user click on Load More Button it sends a page an AJAX request and server responds it.

我不了解JavaScript编程,所以我需要一个示例(FrontEnd和Backend)。

我是编程新手,如果有人做过此事或知道如何做,请发送示例。

(我正在使用Razor页面Web应用程序)

评论