Infosys在阅读器中打开 / AI 翻译

TE2000 | HMI Engineering · 0 次阅读

Context

An asynchronous TypeScript/JavaScript function must report execution success or error to the context object (ctx). The context object has appropriate functions for this.

success

Indicates successful execution.

ctx.success("Result");

error

Indicates unsuccessful execution.

ctx.error(TcHmi.Errors.ERROR);