- wx:key一直报警怎么填写啊?
[Violation] 'setTimeout' handler took 91ms [sitemap 索引情况提示] 根据 sitemap 的规则[0],当前页面 [pages/index/index] 将被索引 [WXML Runtime warning] ./pages/index/index.wxml wx:key="{{index}}" does not look like a valid key name (did you mean wx:key="index" ?) 5 | <view class="list-scroll-view"> 6 | > 7 | <view wx:for="{{list}}" wx:key="{{index}}" wx:for-item="course" wx:for-index="i" class="course-card "> | ^ 8 | <view> 9 | <image src="{{course.coverPath}}" mode="widthFix"></image> 10 | </view>
2021-01-10 - 微信小程序写代码for循环写错了,开发者工具打开就死机。怎么办啊?
微信小程序写代码for循环写错了,打开小程序自动运行,电脑直接就死机了,这个怎么办?
2021-01-10 - wxss哪里错了,一直显示渲染层错误,需要怎么改?
[图片] .book-list { width: 100%; } .book-list .book-item { height: 200rpx; display: flex; align-items: center; justify-content: space-between; padding: 20rpx; box-sizing: border-box; } .book-img, .book-info { height: 100%; } .book-list .book-img { width: 19%; border-radius: 10rpx; overflow: hidden; } .book-list .book-imgs { height: 100%; width: 100%; border-radius: 5rpx; } .book-list .book-info { width: 77%; display: flex; flex-flow: wrap; padding: 10rpx; box-sizing: border-box; } .book-list .book-info view { width: 100%; } .book-list .book-name { font-size: 30rpx; font-weight: 600; margin-bottom: 15rpx; } .book-list .book-introduction { font-size: 24rpx; color: slategray; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; } .book-list .book-keep { display: flex; justify-content: space-between; align-items: center; font-size: 22rpx; color: slategray; } .book-list .book-num { color: red; }
2020-12-28