怎么让其内容一条一条展开?

小程序 文章 2020-09-08 10:01 554 0 全屏看文

AI助手支持GPT4.0

怎么让其内容一条一条展开?How to let its content expand one by one?

怎么让其内容一条一条展开?
<view class='containers'>    <text class="content {{ellipsis?'ellipsis':'unellipsis'}}">      {{item.content}}       text>    <view bindtap='ellipsis'>      <view>        <button>{{ellipsis?'展开':'收起'}}   button>         view>       view>     view>// 展开与收起ellipsis(e) {  this.setData({    ellipsis:!this.data.ellipsis  })},内容是从云开放数据库中获取

          {{ item.content }}Text > < view bindmap '> < View > < button > {ellipsis?'expand':'stow '}} button > View > View > View > / / expand and collapse ellipsis (E) { this.setData ({     ellipsis:! this.data.ellipsis The content is obtained from the cloud open database

回答:

stop eating:

昨天给你的代码片段,你就没看?

虚ཽ 无ཽ:看了,不管用
虚ཽ 无ཽ:真怀疑是不是自己的代码哪里出问题了
stop eating:哪里不管用?说说
虚ཽ 无ཽ:我把JS的代码改完之后,就直接出现了所有内容,点击收起也没有反应
stop eating:不知道你怎么改的啊,别人都行,就你不行,这咋办
虚ཽ 无ཽ:我回头还想在看的时候帖子中的评论就没有了,错误就只能到那个地方了
stop eating:你很长时间不说话,我就删掉了。那个地方是哪?很迷
虚ཽ 无ཽ:你把那个代码片段重新发一下,我再改改,这个从云开发获取数据就是麻烦
虚ཽ 无ཽ:就是JS中改完之后,直接显示了全部内容
败者为寇:

https://developers.weixin.qq.com/community/develop/doc/0006ae5c22cab89b0ccac93e75b800


若认为该回答有用,给回答者点个[ 有用 ],让答案帮助更多的人

虚ཽ 无ཽ:你这个我也看过,现在最主要的原因是,我的内容是云开发中的,不是在WXML或JS中写的
微喵网络:

虚ཽ 无ཽ:不行,直接就全部显示了
微喵网络:弄一个 [ 能复现问题的简单的 ] 代码片段
https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
虚ཽ 无ཽ:我的内容是从云开放数据库获取的,代码片段获取不了数据
虚ཽ 无ཽ:你可以自己在云开放中添加几条数据,之后看看

-EOF-

AI助手支持GPT4.0