帖子
帖子
用户
博客
课程
显示全部楼层
6
帖子
0
勋章
41
Y币

[App引擎] 求助:图片轮播scrollPicture

[复制链接]
发表于 2014-11-13 11:06:19
  1. var obj = api.require('scrollPicture');
  2. var arrayPath = new Array();
  3. arrayPath[0] = 'widget://res/scrollPicture_01.jpg';
  4. arrayPath[1] = 'widget://res/scrollPicture_02.jpg';
  5. arrayPath[2] = 'http://f.hiphotos**.**/image/pic/item/4e4a20a4462309f7bdca9423710e0cf3d7cad65d.jpg';
  6. arrayPath[3] = 'widget://res/scrollPicture_04.jpg';
  7. arrayPath[4] = 'widget://res/scrollPicture_05.jpg';
  8. var arrayTitle = new Array();
  9. arrayTitle[0] = 'widget://res/scrollPicture_01.jpg';
  10. arrayTitle[1] = 'widget://res/scrollPicture_02.jpg';
  11. arrayTitle[2] = 'http://f.hiphotos**.**/image/pic/item/4e4a20a4462309f7bdca9423710e0cf3d7cad65d.jpg';
  12. arrayTitle[3] = 'widget://res/scrollPicture_04.jpg';
  13. arrayTitle[4] = 'widget://res/scrollPicture_05.jpg';

  14. obj.open({
  15.     placeHoldImg:'widget://res/scrollPicture_placehoder.png',
  16.     subtitle:{
  17.         titles:arrayTitle
  18.     },
  19.     control:{
  20.         position:0
  21.     }
  22. },function(ret,err){
  23.     if(ret.status){
  24.         ret.click;
  25.     }else{
  26.         ret.index;
  27.     }
  28. });
复制代码

6
帖子
0
勋章
41
Y币
这个试了几次都没成功
您需要登录后才可以回帖 登录

本版积分规则