使用Vue和Ajax对原有学生管理系统进行优化 创建AjaxResult类,对Ajax回传的信息封装在对象中 package com.grg.Result; public class AjaxResult { private Integer code; private String msg; private Object data; public static AjaxResult success() { return new AjaxResult(1, "成功", null); } public static AjaxResult success(Object data) { return new AjaxResult(1, "成功", data); } public static AjaxResult error() { return new AjaxResult(2, "失败", null); } public AjaxResult() { } public AjaxResult(Integer code, String msg, Object data) {...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile