解决方案 »

  1.   

    格式我是对的 
    data 我不需要传参数 可以不写的 
      

  2.   

    自己好好看DataGrid的API
    http://www.jeasyui.com/documentation/index.php 
    appendRow  row  Append a new row. The new row will be added to the last position:$('#dg').datagrid('appendRow',{
    name: 'new name',
    age: 30,
    note: 'some messages'
    });insertRow  param  Insert a new row, the param contains following properties:
    index: the row index to insert into, if not defined, append the new row.
    row: the row data. Code examples:// insert a new row at second row position
    $('#dg').datagrid('insertRow',{
    index: 1, // index start with 0
    row: {
    name: 'new name',
    age: 30,
    note: 'some messages'
    }
    });
      

  3.   

    都已经生成datagrid了,直接在原来的表上添加新行是显示不了的