API调用返回执行结果Code
ApiResult.Code(属性)
说明
只读 API调用返回执行结果
返回值
浏览器环境示例
javascript
async function example() {
await instance.ready();
const app = instance.Application;
const field = await app.Sheets(1).Views(1).Fields(1)
const result = await field.Move(3)
if(result.Code !== 0) {
console.log(result.Message)
}
}
脚本编辑器示例
javascript
function main() {
const field = Application.Sheets(1).Views(1).Fields(1)
const result = field.Move(3)
if(result.Code !== 0) {
console.log(result.Message)
}
}
main()