"data": [42, 139, 167, 17, -90, -107, -63, -44, 77, 51, 43, 27, -2, -45, -69, -58, -37, -8, 13, 1, -10, -11, -16, -
10, -9
],
- 发布:2023-09-18 10:44
- 更新:2023-09-25 11:04
- 阅读:219
产品分类: HbuilderX
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX版本号: 3.8.12
示例代码:
操作步骤:
"data": [42, 139, 167, 17, -90, -107, -63, -44, 77, 51, 43, 27, -2, -45, -69, -58, -37, -8, 13, 1, -10, -11, -16, -10, -9 ],
格式化代码 ctrl + alt + L
"data": [42, 139, 167, 17, -90, -107, -63, -44, 77, 51, 43, 27, -2, -45, -69, -58, -37, -8, 13, 1, -10, -11, -16, -10, -9 ],
格式化代码 ctrl + alt + L
预期结果:
"data": [42, 139, 167, 17, -90, -107, -63, -44, 77, 51, 43, 27, -2, -45, -69, -58, -37, -8, 13, 1, -10, -11, -16,
-10, -9
],
"data": [42, 139, 167, 17, -90, -107, -63, -44, 77, 51, 43, 27, -2, -45, -69, -58, -37, -8, 13, 1, -10, -11, -16,
-10, -9
],
实际结果:
"data": [42, 139, 167, 17, -90, -107, -63, -44, 77, 51, 43, 27, -2, -45, -69, -58, -37, -8, 13, 1, -10, -11, -16, -
10, -9
],
"data": [42, 139, 167, 17, -90, -107, -63, -44, 77, 51, 43, 27, -2, -45, -69, -58, -37, -8, 13, 1, -10, -11, -16, -
10, -9
],
bug描述:
使用 ctrl + alt + L 格式化 json 文件会将负数负数换行错误,负号和数字分离换行
1 个回复
DCloud_HB_WDL
感谢反馈,后期修复