1、页面中引入隐藏域 input type="hidden" id="area_desc"/ 2、通过在属性中设置 onchange:function(val){ document.getElementById('area_desc').value = val;} 3、在span/span写事件 script type="dojo/on" data-dojo-event="change
1、页面中引入隐藏域
<input type="hidden" id="area_desc"/>
2、通过在属性中设置
onchange:function(val){ document.getElementById('area_desc').value = val; }
3、在<span></span>写事件
<script type="dojo/on" data-dojo-event="change"> document.getElementById('area_desc').value = this.item.id; </script>