场景:我有一个变量JSON
var json = {
"order": {
"orderDetails": [{
"a1": "b1",
"c1": "d1",
"e1": "f1"
}, {
"a1": "b2",
"c1": "d2",
"e1": "f2"
}, {
"a1": "b3",
"c1": "d3",
"e1": "f3"
}],
"orderHeader": [{
"a2": "b1",
"c2": "d1",
"e2": "f1"
}, {
"a2": "b2",
"c2": "d2",
"e2": "f2"
}]
}
};
Run Code Online (Sandbox Code Playgroud)
我需要获得所有order.orderdetails.a1类似值的数组
['b1', 'b2', 'b3']
Run Code Online (Sandbox Code Playgroud) 我正在尝试在 p-calendar 中集成除了 Today 和 Clear 之外的自定义按钮。有什么办法吗?另外,如何将标签 'Clear' 更改为 'Empty' 之类的内容?
谢谢