- 注册时间
- 2012-6-11
- 最后登录
- 2012-8-20
- 阅读权限
- 10
- 积分
- 86
- 精华
- 0
- 帖子
- 16
|
niko 发表于 2012-7-6 18:58
ComboBox联动示例:
http://www.miniui.com/demo/#src=combobox/linkage-combo.html
不知如何具体修改。是更改url?
第一个combobox。
<input id="deptCombo" class="mini-combobox" style="width:150px;" textField="name" valueField="id"
onvaluechanged="onDeptChanged" url="../data/AjaxService.aspx?method=GetDepartments"
showNullItem="true"
/>
我把url的地址写成。txt文件。如下:
[{"name":"市场销售部","manager_name":"New Row","manager":"0a3affc4-d69e-4812-ae28-3072e0b5059c","id":"sc"},{"name":"人事部","manager_name":"杜鉴锋","manager":"9252b4a2-8000-4b3e-b29a-ac7849163ca2","id":"rs"},{"name":"技术部","manager_name":"薛乃馨","manager":"a46d28db-c484-4e58-9076-166cb957a152","id":"js"},{"name":"财务部","manager_name":"薛乃馨","manager":"a46d28db-c484-4e58-9076-166cb957a152","id":"cw"}]
可是第二个js里的那个url。做是根据id动态获取对应的txt,我不清楚怎么修改。请明示 |
|