let code = console.log(123)
console.log(code)

- 发布:2024-04-09 17:04
- 更新:2024-04-12 19:17
- 阅读:175
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: Windows 10 专业版 22H2
HBuilderX类型: 正式
HBuilderX版本号: 4.08
手机系统: Android
手机系统版本号: Android 9.0
手机厂商: 模拟器
手机机型: 雷电模拟器
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
直接真机运行复现
直接真机运行复现
预期结果:
直接打印原字符串 console.log(123)
直接打印原字符串 console.log(123)
实际结果:
f('log','at pages/index/index.vue:37',123)
f('log','at pages/index/index.vue:37',123)
bug描述:
编译时会把字符串中的console编译成uniapp内置的调试函数
预想结果:把console写在字符串中,想发送到webview中,在webview打印结果。
实际效果:uniapp把字符串中的console编译成了内置函数f('log','at pages/index/index.vue:37',123)

