Alexios_Y 发表于 2021-11-11 18:49:04

求助:关于ReferenceError: "console" is not defined

我在流程编辑这里新增了一个脚本活动,编写了脚本后流程无法继续执行,看服务端输出了以下异常,想咨询以下怎么解决:)


论坛管理员 发表于 2021-11-11 18:52:01

您好:您如果是流程设计中使用,那就是后端脚本
您想看日志 请用print("*********************")
console.log是前端代码 在门户或者表单设计中您可以使用console.log 打印脚本

Alexios_Y 发表于 2021-11-11 18:57:01

代码里都没用console呢,是在这里写js代码吗

Alexios_Y 发表于 2021-11-11 18:59:14

论坛管理员 发表于 2021-11-11 18:52
您好:您如果是流程设计中使用,那就是后端脚本
您想看日志 请用print("*********************")
console.l ...

代码里都没用console呢,是在这里写js代码吗

论坛管理员 发表于 2021-11-12 09:42:10

Alexios_Y 发表于 2021-11-11 18:59
代码里都没用console呢,是在这里写js代码吗

您是在流程后台吗?
queryTableService
如果您是后台脚本,如果是6.4以后的版本,建议使用Table
参考文档
https://www.o2oa.net/api/module-Table.html#module-Table
页: [1]
查看完整版本: 求助:关于ReferenceError: "console" is not defined