我试图使用dojox.widget.Standby。我希望在执行其他代码的同时显示待机状态,然后隐藏一次完成。但是,我的待机似乎只有在我打电话给standby.hide()时才会显示。代码如下:dojox.Standby不显示,直到.hide()被调用
standby = new dojox.widget.Standby({
target : "map-id"
});
<div id="map-id" class="centerPanel"
data-dojo-type="dijit.layout.ContentPane"
data-dojo-props="region: 'center', style: 'width: 1300px;'">
<span id="toolbar"></span>
<div id="co-ords" style="position:absolute; bottom:0px; z-index:1000; font-size:8; font-weight:bold; background-color: #FFFFFF"></div>
</div>
任何人都知道发生了什么事?我也在努力用dojo.connect来捕捉onShow事件...
dojo.connect(standby, "onShow", function(){
console.log("standby onShow");
})
谢谢!
更新 - 调用standby.hide()显示我在FireFox插件而不是Chrome浏览器
干杯克雷格,但我恐怕还没有解决它。仍然需要调用standby.hide()来查看事情 – 2012-04-25 14:25:19