最近总是在想如何让一个页面对应一个controller 想了很多方法 感觉都是很麻烦 昨天晚上突发感想,就是用C#中的 partial 这样每个页面就能对应一个controller 起始不是对应的一个Controller 起始controller还是一个 只是在项目中你的XXXController的名称不同 这样不用在一个controller中定义多个Action 感觉这样以后修改代码能简单点 个人意见 但是还不知大怎么重写ViewEngine能让views中的页面可以嵌套多个文件 就像/a/b/c/d 这样