Maison >développement back-end >tutoriel php >easyui-datagri+checkbox 如何用getSelections把数据保存成数组?
checkboxeasyuiphpdatagrid
用的easyui-datagrid,里面加了个 checkbox
<code> function edit(){ var row = $('#dg').datagrid('getSelections'); for(var i = 0; i<row.length alert : url="../php/test.php?o=edit&uid="></row.length></code>
只会用这种方法来获取uid,我应该怎么把他保存成数组。
<code> if($o == 'edit'){ $uid = $_GET['uid']; $profit_date = date('Y-m-d'); $sql = "update e_user set profit_date = '$profit_date' where uid='$uid'"; execute_data($sql);}</code>
求指导。