1
2
3
4
5
6
<script>
var a = '{"1":"100"}';
b = 1;
var json = JSON.parse(a);
console.log(json[b]);
</script>
Post
Cancel
JS如何从后台返回的Map中取数据
This post is licensed under
CC BY 4.0
by the author.