Here is a working demo like below:
1.View(Index.cshtml
):
id |
goodsName |
scale |
action |
id |
goodsName |
scale |
action |
@section Scripts{
}
2.Controller:
public IActionResult Index()
{
return View();
}
public IActionResult GoodsList()
{
var goodsScale = new List
3.Result(the url should be:/home/index
):