YAML对象

对象

对象的一组键值对,是用冒号结构来表示
animal: pets
转为JavaScript
{ animal: 'pets' }
YAML也支持另一种写法,将所有的键值对写成一个行内对象
hash: { name: steve, foo: bar }
转为JavaScript
{ hash: { name: 'steve', foo: 'bar'}}
联系我们

邮箱 626512443@qq.com
电话 18611320371(微信)
QQ群 235681453

Copyright © 2015-2022

备案号:京ICP备15003423号-3