Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
范围名称是:
{{currency}}
我对此进行了编码。输出是:
[{"code":"USD","value":"0.00670000"}]
我只想在前端获得价值美元。
js代码
$scope.currency = [{"code":"USD","value":"0.00670000"}];
html代码
{{货币[0]['代码']}}
或者
{{货币[0].code}}