LayUI树形组件绑定SQL Server递归表数据
标题 如何利用递归来给layui的树形组件绑定sqlServer递归表的数据?
上图是我的数据库内容
public ActionResult GetArea()
{
List<City> rootList = new List<City>();
foreach(var item in context.Area.Where(a => a.isroot == true))
{
原创
2020-10-21 11:37:34 ·
881 阅读 ·
1 评论