视图解析,请求Controller返回的视图类型: @Controller @RequestMapping("/test") public class TestController { //正常返回ModelAndView @RequestMapping("/modelAndView") public ModelAndView retModelAndView(){ ModelAndView mv = new ModelAndView("hello"…
一.ajax例子:ajaxReturn("ok","eval")->thinkphp中ajax的返回值的方法,返回参数为ok,返回类型为eval(字符串) 1.MainController.class.php <?php namespace Ajaxtest\Controller; use Think\Controller; class MainController extends Controller { public function zhuye()…