XIANXU
XIANXU
  • 发布:2024-04-09 17:04
  • 更新:2024-04-12 19:17
  • 阅读:54

【报Bug】uniapp将字符串中的console编译成了__f__内置函数

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: Windows 10 专业版 22H2

HBuilderX类型: 正式

HBuilderX版本号: 4.08

手机系统: Android

手机系统版本号: Android 9.0

手机厂商: 模拟器

手机机型: 雷电模拟器

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

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

操作步骤:

直接真机运行复现

预期结果:

直接打印原字符串 console.log(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)

2024-04-09 17:04 负责人:无 分享
已邀请:
JXWang

JXWang

感谢反馈,我试了一下没能复现,请提供一下可以复现的完整 demo 代码或工程

要回复问题请先登录注册