1,需要引入的
<link rel="stylesheet" type="text/css" href="../../ext-3.2.1/resources/css/ext-all.css"/>
<script type="text/javascript" src="../../ext-3.2.1/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../../ext-3.2.1/ext-all.js"></script>
2.js
<script type="text/javascript">
Ext.onReady(function(){
var combo = new Ext.form.ComboBox({
emptyText:'请选择',
mode:'local',
width:100,
triggerAction:'all',
transform:'workTypeName' , //下拉框idhiddenName:'workName' //value提交到后台的值
});
});
</script><select id="workTypeName" >
<option value="_">--请选择--</option>
<option value=""></option></select>