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>原文链接:https://www.f2er.com/dojo/291275.html