uniapp小程序 生产环境 调试console

uniapp 官方有提供api uni.setEnableDebug
直接调用即可

// 打开调试
uni.setEnableDebug({
    
    
    enableDebug: true
})
// 关闭调试
uni.setEnableDebug({
    
    
    enableDebug: false
})

猜你喜欢

转载自blog.csdn.net/be_strong_web/article/details/121121941