首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >创建调查问卷以在wix velo站点上显示策划好的内容

创建调查问卷以在wix velo站点上显示策划好的内容
EN

Stack Overflow用户
提问于 2021-03-01 18:21:01
回答 1查看 48关注 0票数 0

我试图通过使用velo中的show() & hide()函数将按钮和文本分层,为我的吉他课程站点创建一个入门调查问卷。但NeverPlayed单击事件似乎出现了故障,并且没有显示错误。下面是代码和预览链接以供参考。

代码语言:javascript
复制
$w.onReady(function () {
  
    $w('#box1').hide()
});

export function image3_click(event) {
    
    // This is to keep the show box1 on clicking electric guitar's img: 
    $w('#box1').show();

}

export function NeverPlayed(event) {
    // This function is to hide box1 on clicking neverplayed button and showing next question box with text
    
    $w('#box1').hide()
    $w('#box2').show()
    $w('#text12').show()
}


export function few_months(event) {
    // This function is to hide box1 on clicking few months button and showing next question box with text
    $w('#box1').hide()
    $w('#box3').show()
    $w('#text13').show()
}

预览链接- https://shredbaseofficial.wixsite.com/my-site

EN

回答 1

Stack Overflow用户

发布于 2021-03-01 20:45:00

函数中的代码看起来没问题。你确定你已经在属性和事件面板中正确地连接了它。您是否尝试过在NeverPlayed()函数的开头添加console.log('anything');以确保它正在运行?

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66420280

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档