|
版本: |
|
小版本号: |
|
|
|
数据库: |
|
服务器操作系统: |
|
应用服务器: |
|
客户端操作系统: |
|
浏览器: |
|
|
|
[{"docID":"C7631CF9CDE0000113471A201393B3A0","docName":"@FVC66US2KOVT)`@BN$_X$H.png","size":"3652","docPath":"/defaultDocNameSpace","fileID":"447-defaultDocNameSpace","time":"2017-01-23T10:22:45.481Z"},{"docID":"C7631D0EF340000180FA3A98179E1759","docName":"code.png","size":"2293","docPath":"/defaultDocNameSpace","fileID":"448-defaultDocNameSpace","time":"2017-01-23T10:24:11.795Z"}]
按照下面代码解析,只能解析一张图片;怎么把所有图片都解析出来
var jsonList = eval("(" + row.val('fAttachmentPicture') + ")");//获取当前数据中attachmentImage对应的关系值并转换json对象
if (jsonList != undefined) {
var docPath = jsonList[0]["docPath"]; // 从json对象中获得docPath
var fileID = jsonList[0]["fileID"];// 从json对象中获得fileID
var url = DocUtils.InnerUtils.getdocServerAction({//调用API通过docPath、fileID的值返回url
"docPath" : docPath,
urlPattern : "/repository/file/view/" + fileID + "/last/content",
isFormAction : false,
context : this.getContext()
});
return require.toUrl(url);
}
|
|