我正在尝试使用 dojox 开瓶器。我尝试直接从 dojo 示例中运行该示例,但是当我尝试运行它时它失败了: Uncaught TypeError: Cannot use 'in' operator to search for 'offsetWidth' in undefined
<button onclick="dijit.registry.byId('customPicker').show()">slide up</button>
<div id="customPicker" data-dojo-type="dojox/mobile/Opener">
<h1 data-dojo-type="dojox/mobile/Heading" label="Custom Picker">
<div data-dojo-type="dojox/mobile/ToolBarButton" label="Done" class="mblColorBlue" style="width:45px;float:right;" onClick="dijit.registry.byId('customPicker').hide()"></div>
</h1>
Hello There!!!
</div>
我在这个小提琴中举了一个例子:http: //jsfiddle.net/VD9RN/1/