2012-05-12 36 views
0

使用Dojo Mobile 1.7.2,我無法使簡單的輪播幻燈片工作。我已經在一天中最好的部分,現在Dojo Mobile - 使用1.7+首選API的傳送帶幻燈片?

基本上這一個問題,我想重新創建這個例子: -

http://download.dojotoolkit.org/release-1.7.2/dojo-release-1.7.2/dojox/mobile/tests/test_Carousel-slideshow.html

但使用1.7+首選API(從http://dojotoolkit.org/reference-guide/1.7/dojox/mobile.html): -

require([ 
    "dojox/mobile/parser", // (Optional) This mobile app uses declarative programming with fast mobile parser 
    "dojox/mobile",  // (Required) This is a mobile app. 
    "dojox/mobile/compat" // (Optional) This mobile app supports running on desktop browsers 
], function(parser, mobile, compat){ Optional module aliases that can then be referenced inside callback block 
    // Do something with mobile api's. At this point Dojo Mobile api's are ready for use. 
); 

我設法一切使用這種方法,所以不要希望有恢復到前期1.7風格的API的作爲只是倒退......但遺憾的是大部分的演示(甚至1.7.2)仍然是我們e舊式api。

任何幫助將不勝感激

回答

1

這是打破在道場1.7。 1.8修復了這個問題。

相關問題