Home  >  Article  >  Web Front-end  >  Detailed explanation of adding data instances in jQuery EasyUI

Detailed explanation of adding data instances in jQuery EasyUI

小云云
小云云Original
2017-12-27 10:35:171895browse

This article mainly introduces relevant information about the examples of adding data in EasyUI developed by jQuery. I hope this article can help everyone understand and master this part of the content. Friends who need it can refer to it. I hope it can help everyone.

JQuery Development EasyUI Example of Adding Data

1. Create toolbar:


toolbar:[{
  text:'增加',
  iconCls:'icon-add',
  handler:function(){
    openAddUserDialog();
  }
}]

2. Add a dialog, which contains a form for adding users


3. Open the dialog box:


function openAddUserDialog(){
  $(“#addDialog").dialog('open');
}

4. json returned by the server


//返回的json
public class Json implements java.io.Serializable {

  /**
   * 
   */
  private static final long serialVersionUID = 1L;

  private boolean success = false;

  private String msg = "";

  private Object obj = null;

  public boolean isSuccess() {
    return success;
  }

  public void setSuccess(boolean success) {
    this.success = success;
  }

  public String getMsg() {
    return msg;
  }

  public void setMsg(String msg) {
    this.msg = msg;
  }

  public Object getObj() {
    return obj;
  }

  public void setObj(Object obj) {
    this.obj = obj;
  }

}

Related recommendations:

php lazy function automatically adds data

C#How to update and add data to Excel table using Ado.Net

Example sharing jQuery EasyUI development skills summary

The above is the detailed content of Detailed explanation of adding data instances in jQuery EasyUI. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn