mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
view: 778|reply: 1

web版的[登录][获取设备信息][获取文件信息]等方法都是异步

[copyURL]

9

主题

15

帖子

79

积分

member

Rank: 2

积分
79
poston 2020-7-30 16:44 | 显示全部楼层 |阅读模式
web版的[登录][获取设备信息][获取文件信息]等demo方法都是异步执行的,有什么属性让方法成为同步执行吗?
reply

使用道具 report

6

主题

400

帖子

1590

积分

vipMem

Rank: 6Rank: 6

积分
1590
poston 2020-7-30 17:00 | 显示全部楼层
你好,目前没有同步的接口。也是可以扩展出这种接口的。
同步接口会阻塞js线程,尤其是在UI事件处理函数里阻塞,会造成UI停止响应。
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-3-28 23:46 , Processed in 0.058590 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList