帮助文档:
http://www.cnblogs.com/Philoo/archive/2011/11/17/jeasyui_api_index.html
demo参考:
http://download.csdn.net/detail/zhengjun147/3493349
获得单元格的值
var rows = $('#tt').datagrid('getRows');
for (var i = 0; i < rows.length; i++) {
alert(rows[i].productid);
}
var username = $('#username').val();
alert(username);
alert($('#cc').text());
//var val = $('#cc').combobox('getValue');
//alert(val);
var varAlert="";
var rows = $('#tt').datagrid('getRows');
for (var i = 0; i < rows.length; i++) {
varAlert += rows[i].itemid +",";
varAlert += rows[i].productid +",";
varAlert += rows[i].listprice +",";
varAlert += rows[i].unitcost +",";
varAlert += rows[i].attr1 +",";
varAlert += rows[i].status +",";
varAlert += "\n";
}