uview懒加载

	<view class="">
			<view class="p">
				<u-lazy-load class="pq" img-mode="scaleToFill" :image="image" height="300" :loading-img="loadingImg"></u-lazy-load>
			</view>
			<view class="p">
				<u-lazy-load class="pq" img-mode="scaleToFill" :image="image" height="300" :loading-img="loadingImg"></u-lazy-load>
			</view>
	</view>
<script>
	export default {
		data() {
			return {
				image: "https://gtd.alicdn.com/sns_logo/i1/TB124_3NXXXXXasXVXXSutbFXXX.jpg_240x240xz.jpg",
				loadingImg: "https://cdn.uviewui.com/uview/resources/456481858555415.png"
			}
		}
	}
</script>
<style lang="less">
	.pq{
		float: left;
		width: 300rpx;
		height: 300rpx;
	}
</style>
上一篇:Java爬虫Jsoup简易使用


下一篇:python 遍历文件夹和文件