【发布时间】:2021-11-02 21:22:22
【问题描述】:
我有这个 JSON,我从 router.get 发送到 PUG 页面,名称为 prices
[{"space2":{"actualPrice":"$ 99.990","oldPrice":"$ 129.990","id":11098071}},{"h20":{"actualPrice":"$ 69.990","oldPrice":"$ 79.990","id":4444311}},{"space":{" actualPrice":"$ 79.990","oldPrice":"$ 99.990","id":4436762}}]
在哈巴狗页面中,我想显示space2 中的actualPrice,但我不知道怎么做。
我尝试使用 prices.space2.actualPrice 并在 for 循环中没有任何结果
【问题讨论】:
标签: javascript arrays json pug jade4j