gpt4 book ai didi

javascript - js 对象中括号中的这些类型值是什么意思?

转载 作者:太空宇宙 更新时间:2023-11-04 03:06:32 25 4
gpt4 key购买 nike

vCard {
version: '4.0',
data: {
version: [String: '4.0'],
n: [String: 'Gump;Forrest;;;'],
fn: [String: 'Forrest Gump'],
org: [String: 'Bubba Gump Shrimp Co.'],
title: [String: 'Shrimp Man'],
photo: { [String: 'http://www.example.com/dir_photos/my_photo.gif'] mediatype: 'image/gif' },
tel: [
{ [String: 'tel:+11115551212'] type: [ 'work', 'voice' ], value: 'uri' },
{ [String: 'tel:+14045551212'] type: [ 'home', 'voice' ], value: 'uri' }
],
adr: [
{ [String: ';;100 Waters Edge;Baytown;LA;30314;United States of America']
type: 'work',
label: '"100 Waters Edge\\nBaytown, LA 30314\\nUnited States of America"' },
{ [String: ';;42 Plantation St.;Baytown;LA;30314;United States of America']
type: 'home',
label: '"42 Plantation St.\\nBaytown, LA 30314\\nUnited States ofAmerica"' }
],
email: [String: 'forrestgump@example.com'],
rev: [String: '20080424T195243Z']
}
}

我找不到任何有关 [String: 'Gump;Forrest;;;'] 含义的信息,我如何访问该值本身?每当我在 Node 中console.log它时,我得到

[String: 'Forrest Gump (Full Name)']

最佳答案

阅读后the fine manual ,我发现获取'FN'属性的值的方法是:

let fullName = card.get('fn').valueOf();

关于javascript - js 对象中括号中的这些类型值是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39354063/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com