One-Stop Technical Documentation
LarkXR
Dev Platform
Use Case
WebSDK + DataChannel
Extra Param
DataChannel
WebGL DataChannel
-
+
首页
Extra Param
Version 3252 introduces two additional parameter-passing formatsthe short dash format and the GNU long parameter format,providing us with better options for parameter passing.Lets take a look at the specific usage methods. • Short Dash FormatAppend the`&cmdLineParamStyle=2`parameter to the URL. ``` http://[server_ip]:8181/enterAppli?appliId=[application_id]&extraParam.userName=zhangsan&extraParam.age=12&extraParam.cmdLineParamStyle=2 ``` • GNU Long Parameter FormatAppend the`&cmdLineParamStyle=1`parameter to the URL. ``` http://[server_ip]:8181/enterAppli?appliId=[application_id]&extraParam.userName=zhangsan&extraParam.age=12&extraParam.cmdLineParamStyle=1 ``` • Default Parameter FormatAppend the`&cmdLineParamStyle=0`parameter to the URL,or do not append the`&cmdLineParamStyle`parameter at all. ``` http://[server_ip]:8181/enterAppli?appliId=[application_id]&extraParam.userName=zhangsan&extraParam.age=12&extraParam.cmdLineParamStyle=0 ``` The effects of the three parameter -passing formats are demonstrated in the order of short dash,GNU long parameter,and default parameter .Additionally,we have introduced a feature to handle the encoding of special characters in additional parameters.The usage method is as follows: ``` "https://XXXX?extraParam.encoded.token=" + encodeURIComponent(jsonValue) ``` such as : ``` https://XXXX?appliId=**&extraParam.encoded.X=-ResX%3D2560&extraParam.encoded.Y=-ResY%3D1350 ```
admin
2025年5月22日 16:29
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
Markdown文件
Word文件
PDF文档
PDF文档(打印)
分享
链接
类型
密码
更新密码
有效期