Home  >  Article  >  Backend Development  >  easyui-datagri+checkbox 如何用getSelections把数据保存成数组?

easyui-datagri+checkbox 如何用getSelections把数据保存成数组?

WBOY
WBOYOriginal
2016-06-02 11:33:351192browse

checkboxeasyuiphpdatagrid

用的easyui-datagrid,里面加了个 checkbox


我怎么根据多行选择的数据保存为数组发送给php,由php来分隔数组后来执行修改。
 function edit(){                  var row = $('#dg').datagrid('getSelections');                     for(var i = 0; i

只会用这种方法来获取uid,我应该怎么把他保存成数组。

 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);}

求指导。

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