摘要: 我们要实现一个简单的功能,在界面上放置一张图片,设置重新加载按钮,能更新图片。 WXML代码: JS代码: 效果图: 点击刷新后 变成 待补:多次点击“ 点击刷新 ”,能跳转出多张图片。 阅读全文
posted @ 2019-01-21 19:16 从让帝到the_rang 阅读(1243) 评论(0) 推荐(0) 编辑
摘要: 1. 设置图片,小程序支持两种引用图片方法,一种是本地引用,一种是网络资源引用。 但是引用本地图片的的时候不能用wxml样式去引用本地的图片,不会报错,也没效果。就是在wxss页面中不能引用本地的图片。这个时候就要用image组件了。 2. 加载本地的图片 src是图片的相对路径,一般图片放在ima 阅读全文
posted @ 2019-01-21 17:03 从让帝到the_rang 阅读(11813) 评论(0) 推荐(0) 编辑
摘要: 并查集的介绍可以看下https://www.cnblogs.com/jkzr/p/10290488.html A - Wireless Network POJ - 2236 An earthquake takes place in Southeast Asia. The ACM (Asia Coop 阅读全文
posted @ 2019-01-21 15:41 从让帝到the_rang 阅读(441) 评论(0) 推荐(0) 编辑
摘要: F - Tree Intersection CSU - 1811 Bobo has a tree with n vertices numbered by 1,2,…,n and (n-1) edges. The i-th vertex has color c i, and the i-th edge 阅读全文
posted @ 2019-01-21 15:01 从让帝到the_rang 阅读(164) 评论(0) 推荐(0) 编辑
摘要: E - Dominant Indices CodeForces - 1009F You are given a rooted undirected tree consisting of nn vertices. Vertex 11 is the root. Let's denote a depth 阅读全文
posted @ 2019-01-21 13:59 从让帝到the_rang 阅读(220) 评论(0) 推荐(0) 编辑