如何获取图片库中图片的图片网址? [英] How to get the picture url for images in a picture library?

查看:225
本文介绍了如何获取图片库中图片的图片网址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在写一个页面来显示每张图片的某些列数据,但是我在获取图片url时遇到了问题,因此我可以在img标签的src属性中找到它.我已经尝试了EncodedAbsUrl,FileDirRef和FileRef,但没有任何效果.请 帮助.

I am writing a page to show some column data for each picture, but I'm having problem how to get the picture url so I can out it in the src attribute of an img tag. I have tried EncodedAbsUrl, FileDirRef and FileRef, nothing worked. Please help.

以下是我的代码的一部分:

Below is part of my codes:

var CI = {
id:oListItem.get_id(),
标题:oListItem.get_item("Title"),
价格:oListItem.get_item("Value"),
图片:??????????????????????????????????? ???????,
摘要:oListItem.get_item("Description"),
联系人:oListItem.get_item(" ContactPerson").get_lookupValue(),
列表:listDateString,
条件:oListItem.get_item("Condition"),
location:位置,
};

var CI = {
id: oListItem.get_id(),
title: oListItem.get_item("Title"),
price: oListItem.get_item("Value"),
image: ???????????????????????????????????????,
summary: oListItem.get_item("Description"),
contact: oListItem.get_item("ContactPerson").get_lookupValue(),
list: listDateString,
condition: oListItem.get_item("Condition"),
location: location,
};

我以后使用CI.xx来获取列值.

I use CI.xx to get the conlumn values later.

预先感谢.

推荐答案


这篇关于如何获取图片库中图片的图片网址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆