item是个json对象
console.log(item);
- 发布:2022-05-29 10:59
- 更新:2022-05-29 15:36
- 阅读:462
产品分类: HbuilderX
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: Win11
HBuilderX版本号: 3.4.7
操作步骤:
预期结果:
输出json对象就行了,每次都要用JSON.stringify转换
输出json对象就行了,每次都要用JSON.stringify转换
实际结果:
{
"ob": {
"dep": {
"id": 13438,
"subs": {
"0": {
"active": true,
"before": "function before() {\n if (vm._isMounted && !vm._isDestroyed) {\n callHook(vm, 'beforeUpdate');\n }\n }",
"cb": "function noop(a, b, c) {}",
"deep": false,
"depIds": "Object",
"deps": "Object",
"dirty": false,
"expression": "function () {\n vm._update(vm._render(), hydrating);\n }",
"getter": "function () {\n vm._update(vm._render(), hydrating);\n }",
"id": 2125,
"lazy": false,
"newDepIds": "Object",
"newDeps": "Object",
"sync": false,
"user": false,
"vm": "Object"
},
"length": 1
}
},
"value": {
"ob": {
"dep": {
"id": 13438,
"subs": "Object"
},
"value": {
"ob": "Object"
},
"vmCount": 0
}
},
"vmCount": 0
}
}
{
"ob": {
"dep": {
"id": 13438,
"subs": {
"0": {
"active": true,
"before": "function before() {\n if (vm._isMounted && !vm._isDestroyed) {\n callHook(vm, 'beforeUpdate');\n }\n }",
"cb": "function noop(a, b, c) {}",
"deep": false,
"depIds": "Object",
"deps": "Object",
"dirty": false,
"expression": "function () {\n vm._update(vm._render(), hydrating);\n }",
"getter": "function () {\n vm._update(vm._render(), hydrating);\n }",
"id": 2125,
"lazy": false,
"newDepIds": "Object",
"newDeps": "Object",
"sync": false,
"user": false,
"vm": "Object"
},
"length": 1
}
},
"value": {
"ob": {
"dep": {
"id": 13438,
"subs": "Object"
},
"value": {
"ob": "Object"
},
"vmCount": 0
}
},
"vmCount": 0
}
}
bug描述:
console.log 调试json对象的问题
以前这个可以直接打印出来,现在打印出来是下面这种了,每次都需要
item是个json对象
console.log(JSON.stringify(item));
在APP端是直接打印的,在H5需要转换一下。
1 个回复
DCloud_heavensoft
内置浏览器是吧,我这里使用3.4.12没有复现这个问题。从3.4.7到3.4.12之间没有改动过内置浏览器插件。你再仔细核实下