簡體   English   中英

Dojo Mobile-使用1.7+首選api的Carousel Slideshow?

[英]Dojo Mobile - Carousel Slideshow using 1.7+ preferred api's?

使用Dojo Mobile 1.7.2,我無法使用簡單的輪播幻燈片進行演示。 我在一天當中的大部分時間里一直在解決這個問題

基本上,我正在嘗試重新創建此示例:-

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)仍然使用舊樣式的api。

任何幫助將非常感激

這在dojo 1.7中已被打破。 1.8解決了該問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM