摘要: import re import copy class ValidateError(Exception): def __init__(self,detail): self.detail = detail # ###################### 插件 class TextInput(object): def __str__(self): ... 阅读全文
posted @ 2018-03-08 21:42 骑猪走秀 阅读(556) 评论(0) 推荐(0) 编辑
摘要: 1、让一个页面实时接受数据的三种方式? 轮询 :设置定时器,每隔设置 时间发送请求 缺点:数据延迟 长轮询 :将所有请求夯住,有数据的时同时返回。设置超时(超时后断开连接,用户重新发送消息) 应用:web微信,webQQ websocket:主动发请求,被动接受消息 面试: 关于websocket是 阅读全文
posted @ 2018-03-08 17:17 骑猪走秀 阅读(76) 评论(0) 推荐(0) 编辑