Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
811 views
in Technique[技术] by (71.8m points)

weex list如何移除loading

display 值为 show 或 hide。仅隐藏 <indicator>,<loading> 其他子组件依然可见,loading 事件仍会被触发。

如果需要 <loading> hide 时隐藏文案并不再触发事件,有两种解决方法:

修改提示文案,并在 loading 事件中添加判断逻辑;
v0.9+ 可通过 remove 解决。

---看了官方文档。这个remove有谁使用过?能否给个例子?谢谢
这边sdk已经是0.11了。
this.$("loadmore").remove();
这样不行。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

有答案了吗?同问啊


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...