点击登录

讨论 Please tell me what I am doing wrong

Humaid

LV100+
社区会员
I wanted to program mi band 7 if we swipe left a new page open but it seams like it's not working
 

附件

  • Screenshot_2022-08-30-21-13-29-458.jpg
    Screenshot_2022-08-30-21-13-29-458.jpg
    178.2 KB 下载
  • Screenshot_2022-08-30-21-13-15-926.jpg
    Screenshot_2022-08-30-21-13-15-926.jpg
    135.8 KB 下载
  • Screenshot_2022-08-30-21-12-46-789.jpg
    Screenshot_2022-08-30-21-12-46-789.jpg
    185.4 KB 下载
  • Screenshot_2022-08-30-21-12-57-238.jpg
    Screenshot_2022-08-30-21-12-57-238.jpg
    174.5 KB 下载
  • Screenshot_2022-08-30-21-13-13-258.jpg
    Screenshot_2022-08-30-21-13-13-258.jpg
    144 KB 下载
  • Screenshot_2022-08-30-21-12-28-898.jpg
    Screenshot_2022-08-30-21-12-28-898.jpg
    184.6 KB 下载
Well I’m able to communicate with you but not understand to be a developer. I never study that before and I think I can ask other developers for help. But not on this website,it is hard to notice any message send on this site
 
I wanted to program mi band 7 if we swipe left a new page open but it seams like it's not working
wrong syntax for the switch statement, it shld be like this
JavaScript:
switch(expression) {
  case x:
    // code block
    break;
  case y:
    // code block
    break;
}
the case block is part of the switch statement ,if the case equals to the expression, it will run the code block associated to it
 
最后编辑:
JavaScript:
hmApp.registerGestureEvent(function (event) {
        switch (event) {
            case hmApp.gesture.LEFT:
                hmApp.gotoPage({
                    url: "(url of the page)",
                    param: "..."
                });
 

*这是一则由 Google AdSense 自动推荐的广告,与本站无关,不对其真实性与可靠性负责

相似主题

讨论
713
6

Home 首页
Home 资源
News 发现
Account 我的
顶部