事件监听

demo.on('事件名',function(data){/do something.})事件列表 参数说明请参见下表。事件名 说明 最低支持版本 fileOpen 文档打开,用于文档打开成功或者失败时的事件回调。1.0.0 error 错误事件,用于错误发生时的事件回调。1.1.2 tabSwitch...

错误处理

{"errorMessage":"something is wrong!errorType":"errorString"} 使用panic抛出错误信息,示例如下。package main import("fmt""github.com/aliyun/fc-runtime-go-sdk/fc" )func HandleRequest()error { fmt.Println("hello world")...

错误处理

{"errorMessage":"something is wrong!errorType":"errorString"} 使用panic抛出错误信息,示例如下。package main import("fmt""github.com/aliyun/fc-runtime-go-sdk/fc" )func HandleRequest()error { fmt.Println("hello world")...

错误处理

{"errorMessage":"something is wrong","errorType":"Exception","stackTrace":[["File \"/code/index.py\"","line 2","in my_handler","raise Exception('something is wrong')"]]} 异常信息包含如下三个字段:字段 类型 解释说明 ...

错误处理

{"errorMessage":"something is wrong","errorType":"Exception","stackTrace":[["File \"/code/index.py\"","line 2","in my_handler","raise Exception('something is wrong')"]]} 异常信息包含如下三个字段:字段 类型 解释说明 ...

演示相关

await demo.PPTApplication().ActivePresentation.SlideShowWindow.View.GotoSlide(3)当前页改变事件 function eventHandle(){/do something }/监听当前页改变事件。demo.PPTApplication().Sub.SlideSelectionChanged=eventHandle/销毁事件...

Queue管理

TimelineCallback callback=new TimelineCallback(){@Override public void onCompleted(TimelineIdentifier i,TimelineMessage m,TimelineEntry t){/do something when succeed.}@Override public void onFailed(TimelineIdentifier i,...

Bloom过滤器索引

说明 详细内容可参考Databricks官网文章:Bloom过滤索引 如果在表的某列上创建了布隆过滤器索引,并且使用 where col="something"作为查询条件,那么在扫描表中文件时,我们可以使用布隆过滤器索引得出两种结论:文件中肯定不包含 col=...

释放对象

切换sheet/.do something/不需要改对象时,可以手动销毁/此时会通知iframe内部销毁对应对象 sheet.Destroy();批量释放对象 当有多个对象需要销毁时,可以按照区间批量释放对象。代码示例:const stack=app.Stack();do something stack.End...

Avro

本文为您介绍Avro格式的使用示例、配置选项和类型映射。背景信息 Avro 格式允许基于...Flink将nullable的类型映射到Avro union(something,null),其中something是从Flink类型转换的Avro类型。说明 关于Avro类型的信息,详情请见 Avro 规范。

mPaaS Kotlin 扩展

class MyApplication:Application(){ override fun onCreate(){ super.onCreate()/mPaas 初始化 mPaaS(this){ callback {/DO something Log.i("Framework","mPaaS 初始化完成")} } } } 使用场景三 如果您有使用小程序新容器:快速开始。...

事件

instance.on('事件名',(data)=>{/do something.});事件列表 可用于监听的事件请参见下表。事件名 描述 最低支持版本 fileOpen 文件打开成功或者失败时的事件回调。1.0.0 error 错误发生时的事件回调。1.1.2 tabSwitch PC头部Tab切换。1.1.2...

OpsKvPairs

} double score(OpsScoreParams params){ if(flag=1){/do something } return 0.0;} } float getFloat(CString key)从kvpairs中获取float类型的参数。参数列表:key—参数在kvpairs中的key返回值:返回自定义的参数,如果key不存在或者无法...

进阶指南

clazz,Method method,Object[]args,Annotation annotation,ThreadLocal,Object>>extParams)throws RpcException {/Do something.return true;}/*后置拦截:发起 RPC 成功之后回调。return true 表示继续向下执行,false 表示中断当前请求,...

调用上下文

do something on serviceContext.} 上下文内容 RPC 上下文的信息均是从 Tracer 中获得,包含如下内容:Reference 参数 说明 traceId Trace ID 名称。rpcId RPC ID 名称。interfaceName 服务接口。methodName 服务方法。uniqueId 服务的唯一...

高级用法

通过调用高级接口可用于直接操作文档。本文中的demo对象是指JS-SDK实例化后的对象。重要 此文档已不再维护,建议您使用新版智能媒体管理。...代码示例 const stack1=app.Stack()/do something stack1.End()/释放在stack1区间的对象。

队列使用手册

} catch(ClientException ce){ System.out.println("Something wrong with the network connection between client and MNS service."+"Please check your network and DNS availability.");ce.printStackTrace();} catch(ServiceException...

Java SDK使用说明

todo something } catch(ServerException e){ e.printStackTrace();} catch(ClientException e){ e.printStackTrace();} } 调用OpenAPI并解析结果。IAcsClient提供了两种类型的调用结果,如下所示:调用 doAction 方法获取原始的API调用...

异步处理

您可以按照以下方式使用:Thread thread=new Thread(new SofaTracerRunnable(new Runnable(){@Override public void run(){/do something your business code } }));thread.start();线程中使用 java.util.concurrent.Callable 如果您在代码...

升级Nginx Ingress Controller组件

default spec:rules:host:rewrite.bar.com http: paths: - path: /something/ pathType: Prefix backend: service: name: http-svc port: number: 80 - path: /something123/ pathType: Prefix backend: service: name: http-svc-1 port: number: 80 需...

API详情

null){/do something with the audio frame System.out.println("audio result length:"+result.getAudioFrame().array().length);} if(result.getTimestamp()!null){/do something with the timestamp System.out.println("tiemstamp:"+...

API详情

null){/do something with the audio frame System.out.println("audio result length:"+result.getAudioFrame().array().length);} if(result.getTimestamp()!null){/do something with the timestamp System.out.println("tiemstamp:"+...

消息过滤

请使用 xml 或注解将该类配置为 Bean,只有@Messaging 扫描不到@Messaging public class SomeClass {@MessageConsumer(group="GID_XXX",topic="TP_XXX",filter="*")public void someMethodReceivePojo(OrderPojo somePojo){/do something }...

错误处理

request.ExtraRequestInfo.SetTraceID("test_TraceId_"+strconv.FormatInt(time.Now().UnixNano(),10))/do something res,err:=client.DescribeTable(request)if err!nil { fmt.Println(err.Error())} else { fmt.Println(res.ResponseInfo...

Android集成

do something } else if(auditResult=RPResult.AUDIT_NOT){/未认证,具体原因可通过code来区分(code取值参见错误码说明),通常是用户主动退出或者姓名身份证号实名校验不匹配等原因,导致未完成认证流程。do something } } });说明 code...

Android集成

do something } else if(auditResult=RPResult.AUDIT_NOT){/未认证,具体原因可通过code来区分(code取值参见错误码说明),通常是用户主动退出或者姓名身份证号实名校验不匹配等原因,导致未完成认证流程。do something } } });说明 code...

DAO 存储

[proxy insertItem:@"something"];long long lastIndex=[proxy lastInsertRowId];NSString*content=[proxy getItem:[NSNumber numberWithInteger:lastIndex]];NSLog(@"content%",content);其中 lastInsertRowId 是 APDAOProtocol 的一个...

初始化合约

class DemoContract:public Contract { public:INTERFACE void DemoInit(int32_t a,std:string b){/do something.} };INTERFACE_EXPORT(DemoContract,(DemoInit))在部署该合约时,可以通过SDK指定 DemoInit 方法作为初始化方法并指定参数a...

初始化合约

class DemoContract:public Contract { public:INTERFACE void DemoInit(int32_t a,std:string b){/do something.} };INTERFACE_EXPORT(DemoContract,(DemoInit))在部署该合约时,可以通过SDK指定 DemoInit 方法作为初始化方法并指定参数a...

当我运行Python语言的函数时,遇到报错NoneType ...

def handler(environ,start_response):#do something here status='200 OK' response_headers=[('Content-type','text/plain')]#forget to call start_response#start_response(status,response_headers)#return value must be iterable ...

PDF相关

{ PageNum:number }*/let PageNum=10 await demo.PDFApplication().ActivePDF.JumpToPage({PageNum})当前页改变事件 function eventHandle(){/do something }/监听当前页改变事件。demo.PDFApplication().Sub.CurrentPageChange=...

CString

a.empty()){/do something } byte byteAt(int index)获取字符串指定位置的字符,index的取值范围为[0,lenght()-1]。如果index大于字符串的长度,会产生数组越界访问异常。参数:index—待返回的字符下标返回值:返回index位置的字符。代码...

CString

a.empty()){/do something } byte byteAt(int index)获取字符串指定位置的字符,index的取值范围为[0,lenght()-1]。如果index大于字符串的长度,会产生数组越界访问异常。参数:index—待返回的字符下标返回值:返回index位置的字符。代码...

OpsRequest

简介 OpsRequest表示用户的一次查询请求,通过OpsRequest可以获取查询请求中的各种信息。目前OpsRequest仅支持获取OpsKvPairs,用户在查询时将自定义的...} double score(OpsScoreParams params){ if(flag=1){/do something } return 0.0;} }

回退

console.log('do something.')AlipayJSBridge.call('popWindow');},false);代码示例 点击回退跳转到指定页面:请点击左上角返回按钮</h1><p>点击后会跳回到淘宝页面</p><script>/注意:如果自定义了 back,并使用了 location.href 去跳到...

java_lang_OutOfMemoryError

for(Object tmp:otherList){/to do something } list.clear();list=null;参考文献 ...

主题使用手册

} catch(ClientException ce){ System.out.println("Something wrong with the network connection between client and MNS service."+"Please check your network and DNS availability.");ce.printStackTrace();} catch(ServiceException...

通过SkyWalking上报Rust应用数据

{ do something.let span=ctx.create_exit_span("operation1","remote_peer");}/server.rs:let mut ctx=tracer.create_trace_context();{ let span=ctx.create_entry_span("operation1");do something.} 配置接入点和令牌。您可以通过 前提...

java_io_EOFException

try {/do something/Read all characters,until an EOFException is thrown.input=new DataInputStream(new FileInputStream(FILENAME));while(true){ char num;try { num=input.readChar();System.out.println("Reading from file:"+num);...

通过SkyWalking上报Rust应用数据

{ do something.let span=ctx.create_exit_span("operation1","remote_peer");}/server.rs:let mut ctx=tracer.create_trace_context();{ let span=ctx.create_entry_span("operation1");do something.} 配置接入点和令牌。您可以通过 前提...
共有4条 < 1 2 3 4 >
跳转至: GO
产品推荐
云服务器 安全管家服务 安全中心
这些文档可能帮助您
弹性公网IP 短信服务 人工智能平台 PAI 金融分布式架构 物联网平台 对象存储
新人特惠 爆款特惠 最新活动 免费试用