0

嗨,我开始使用 Pebble.JS 创建一个 pebble 应用程序。我在我的 Pebble 上安装了该应用程序,我注意到一些菜单项会自行消失并重新出现。

没有什么太花哨的代码:

    for(var i = 0; i < quantity; i++) {
      var rest = data.Result.results[i];
      var showName = rest.shows[0].showName;
      items.push({
        ourid:rest.ourID,
        distance:rest.fmtDistance,
        knownfor:rest.knownForNoHTML,
        title:rest.name,    
        subtitle:showName
      });
    }
                                
                                

4

1 回答 1

2

I believe what you're seeing is Pebble's handling of menus. From my experience, Pebble.js only displays a few menu items (up to 5 or so?), and will load the other menu items as the user scrolls down to them.

As long as those items reappear, I'm not sure there's much to be improved.

于 2015-03-03T20:55:33.977 回答