联动下拉框
1.
public System.out.println("我擦。333。");
try PrintWriter //json格式: out.write("[[1, "[4, "[7, out.close(); } } return; }
public String System.out.println("XBid"
try PrintWriter out.flush(); //json格式:
if out.write("[[1,'网络方向'],[2,'软件工程'],[3,'信息安全'],[4,'嵌入式']]"); }
if out.write("[[1,'222'],[2,'2323'],[3,'2424'],[4,'2525']]"); }
if out.write("[[1,'33'],[2,'33件工程'],[3,'33信息安全'],[4,'嵌入式']]"); } out.close(); } } return; } |
2.
Ext.onReady(function()
var // name }, name }])) //, });
var store: listeners select //在此处设置联动(关联) //var //1.
var comboZY.reset(); storezhuanye.removeAll(); storezhuanye.proxy= //2. }); //3. } }, valueField displayField mode forceSelection allowBlank: blankText emptyText id: name: hiddenName editable triggerAction fieldLabel width });
var name }, name }])) //, });
var store: valueField displayField mode forceSelection emptyText hiddenName editable triggerAction allowBlank:
blankText fieldLabel name id: width //添加监听事件 listeners: //给select事件添加监听 select: //处理下拉框的值 } } }); }); 最后的效果图:
|
版权声明:本文为博主原创文章,未经博主允许不得转载。