debug
配置项介绍
用于 测试、正式 环境选择。
- 可选,默认正式环境:
debug: false。 - 若已配置
url参数,debug无效。
测试环境
hymatrix-js 支持使用测试环境进行开发调试,只需要将 debug 参数设置为 true,即可使用 HyMatrix 测试环境。
const hyMatrix = new HyMatrix({
debug: true
})
正式环境
当需要使用 HyMatrix 正式环境时,只需要将 debug 参数设置为 false,或不传递,即可使用 HyMatrix 正式环境。
const hyMatrix = new HyMatrix({
debug: false
})
// 或
const hyMatrix = new HyMatrix({...})
// 或
const hyMatrix = new HyMatrix()