📜  动态加载局部视图 mvc - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:15.501000             🧑  作者: Mango

代码示例1
// partial view controller
public IViewResult LoadPartial() {
  return PartialView("_login"); // name of the partial view
}

// view (with jquery)
$("#container").load("LoadPartial");