php如何get获取id,然后通过id查询后将数据返给html,html的datagrid接收值。
我如果不通过id来查询的话,datagrid可以显示值。但是有id的话。datagrid的url该怎么写。
php 跟 html 是两个页面。datagrid 有办法可以变成纵向的吗?name: aaa;
address: bj;
age :20;这种的。
我如果不通过id来查询的话,datagrid可以显示值。但是有id的话。datagrid的url该怎么写。
php 跟 html 是两个页面。datagrid 有办法可以变成纵向的吗?name: aaa;
address: bj;
age :20;这种的。
$('#dg').datagrid({
url:url,
columns:[[
{field:'code',title:'Code',width:100},
{field:'name',title:'Name',width:100},
{field:'price',title:'Price',width:100,align:'right'}
]]
});function changedata(id){
url = url + '?id=' + id;
$('#dg').datagrid('reload');
}changedata(1);//更换id我也第一次接触这个东西,你看行不行
name:aaa
phone:1123344
address:中国
而不是原来的:
name phone address
aaa 12233 中国
The propertygrid extend from datagrid. It's row data format is same as datagrid. As a property row, the following fields are required:
name: the field name.
value: the field value to be edited.
group: the group field value.
editor: the editor while editing property value.Row data example: {"total":4,"rows":[
{"name":"Name","value":"Bill Smith","group":"ID Settings","editor":"text"},
{"name":"Address","value":"","group":"ID Settings","editor":"text"},
{"name":"SSN","value":"123-456-7890","group":"ID Settings","editor":"text"},
{"name":"Email","value":"[email protected]","group":"Marketing Settings","editor":{
"type":"validatebox",
"options":{
"validType":"email"
}
}}
]}