摘要:
console.info() 向调试面板中打印 info 日志 参数 any ...args 日志内容,可以有任意多个。 阅读全文
posted @ 2024-12-29 17:50
AtlasLapetos
阅读(4)
评论(0)
推荐(0)
摘要:
console.groupEnd() 结束由 console.group 创建的分组 注意事项 仅在工具中有效,在 vConsole 中为空函数实现。 阅读全文
posted @ 2024-12-29 17:50
AtlasLapetos
阅读(4)
评论(0)
推荐(0)
摘要:
console.group(string label) 在调试面板中创建一个新的分组。随后输出的内容都会被添加一个缩进,表示该内容属于当前分组。调用 console.groupEnd之后分组结束。 参数 string label 分组标记,可选。 注意事项 仅在工具中有效,在 vConsole 中为 阅读全文
posted @ 2024-12-29 17:50
AtlasLapetos
阅读(9)
评论(0)
推荐(0)
摘要:
console.error() 向调试面板中打印 error 日志 参数 any ...args 日志内容,可以有任意多个。 阅读全文
posted @ 2024-12-29 17:50
AtlasLapetos
阅读(5)
评论(0)
推荐(0)
摘要:
console.debug() 向调试面板中打印 debug 日志 参数 any ...args 日志内容,可以有任意多个。 阅读全文
posted @ 2024-12-29 17:49
AtlasLapetos
阅读(7)
评论(0)
推荐(0)
摘要:
console 向调试面板中打印日志。console 是一个全局对象,可以直接访问。在微信客户端中,向 vConsole 中输出日志。 方法 console.debug() 向调试面板中打印 debug 日志 console.log() 向调试面板中打印 log 日志 console.info() 阅读全文
posted @ 2024-12-29 17:49
AtlasLapetos
阅读(20)
评论(0)
推荐(0)
摘要:
any requireMiniProgram() 基础库 2.11.1 开始支持,低版本需做兼容处理。 插件引入当前使用者小程序。返回使用者小程序通过插件配置中 export 暴露的接口。参考 使用插件 - 导出到插件 该接口仅在插件中存在。 参数 该接口不需要参数 示例代码 // in plugi 阅读全文
posted @ 2024-12-29 17:49
AtlasLapetos
阅读(14)
评论(0)
推荐(0)
摘要:
any requirePlugin(string path) 引入插件。返回插件通过 main 暴露的接口。参考 使用插件 - js 接口 参数 名称 类型 说明 module string 需要引入的插件的 alias。基础库 2.14.0 起,也可以是插件的 AppID 示例代码 var myP 阅读全文
posted @ 2024-12-29 17:49
AtlasLapetos
阅读(28)
评论(0)
推荐(0)
摘要:
Object exports module.exports 的引用 示例代码 // common.js function sayHello(name) { console.log(`Hello ${name} !`) } function sayGoodbye(name) { console.log 阅读全文
posted @ 2024-12-29 17:49
AtlasLapetos
阅读(18)
评论(0)
推荐(0)
摘要:
Object module 当前模块对象 属性 属性 类型 说明 exports Object 模块向外暴露的对象,使用require引用该模块时可以获取 示例代码 // common.js function sayHello(name) { console.log(`Hello ${name} ! 阅读全文
posted @ 2024-12-29 17:49
AtlasLapetos
阅读(4)
评论(0)
推荐(0)
浙公网安备 33010602011771号