Current location - Training Enrollment Network - Mathematics courses - How does jquery easyui's datagrid dynamically load data?
How does jquery easyui's datagrid dynamically load data?
Use the load method of datagrid, for example:

$('#dg ')。 Data Grid ('Load', {

Code:? '0 1',

Name:? Name 0 1'

}); Ajax calls the background method, obtains json data and initializes datagrid in the callback function.

You can refer to the official document: /documentation/index.php#