Attachment (对象)
说明
图片和附件字段返回的数据结构,可以通过里面的属性读取文件的信息和地址
方法
属性
浏览器环境示例
javascript
async function example() {
await instance.ready();
const app = instance.Application;
const dbCellValue = await app.Sheets(1).Views(1).RecordRange(1,"@图片和附件").Value
const attments = await dbCellValue.Value
console.log(await attments[0].FileName)
}
脚本编辑器 示例
javascript
function main() {
const dbCellValue = Application.Sheets(1).Views(1).RecordRange(1,"@图片和附件").Value
const attments = dbCellValue.Value
console.log(attments[0].FileName)
}
main()