view 中 vx:if 渲染失败,怎么办呢?

小程序 文章 2021-03-16 19:01 309 0 全屏看文

AI助手支持GPT4.0

view 中 vx:if 渲染失败,怎么办呢?The vx:if rendering fails in the view, what should I do?

view 中 vx:if 渲染失败,怎么办呢?

1.想做一个手动推送的监控,名字是遍历出来的,想做成异常情况才把 描述的标签 显示出来,正常情况 不显示 “描述”标签

在做的过程中,我在js中填写代码如下,无论我写在 radio里还是view中都没有在wxml页面中 成功隐藏或显示。。。。

console.log已打印出正常值,在前面的页面采用vx:if方式


求大神指导。

另外,列表是遍历做的,若修改一个正常或异常 是否会影响到整个列表中的 正常,异常按钮?

1. I want to do a manual push monitoring. The name is traversed, and the description tag is displayed only when I want to make an exception. Normally, the "description" tag is not displayed. In the process of doing this, I fill in the code in JS as follows. No matter I write it in radio or view, it is not successfully hidden or displayed in the wxml page.... console.log Has printed out the normal value, in front of the page using VX: if method for God guidance. In addition, the list is traversed. If you modify a normal or exception, will it affect the normal and exception buttons in the whole list?

回答:

brave:

wx:if 谁告诉你的 vx:if

浮生凉筑:

wx:if

Samuel.Schnappi:

不愚蠢,给出代码片段供大家帮你,别发截图啊

假亦真:

可能问题有些愚蠢,请见谅,谢谢。

-EOF-

AI助手支持GPT4.0