Why when I use
['type':x, z:y]
Where
x = 'Car'
z = 'Speed'
y = '1000'
I get a map equal to
[type=Car, z=1000]
and not
[type=Car, Speed=1000]
and how can I overcome it?
如果Map的键始终是字符串,则以下方法也应该有效
['type':x, "$z":y]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.