需求
从本地相册获取照片并且生成轮播图,然后通过照片的元数据读取时间、地点等信息。
实现
图片主要通过url访问,微信api读取图片时会返回图片的url,通过设定数组,存储图片的url。
对象设置:
timeAxis2: [
{
time: '2018年8月10日22:08:20', filePath: ''},
{
time: '2018年8月10日22:08:24', filePath: ''},
{
time: '2018年8月10日22:08:27', filePath: ''},
{
time: '2018年8月10日22:08:30', filePath: ''},
{