![](https://img-blog.csdnimg.cn/20190918140145169.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Eclectics
兼收并蓄 不拘一格
cv_gcs
这个作者很懒,什么都没留下…
展开
-
免费天气api
网站地址https://www.tianqiapi.com/index 请求地址 https://www.tianqiapi.com/free/day 描述 : 获取天气情况 请求参数 : appid (注册获取) appsecret (注册获取) city (城市名) 返回参数: { air: "23" city: "杭州" cityid: "101210101" tem: "31"//实时温度 tem_day: "30" tem_night: "25" update_time: "13原创 2021-08-12 13:37:33 · 205 阅读 · 0 评论 -
小程序长连接
后台推送数据,实时获取 var url = 'ws:// ‘后台服务器’ '; var wxst = wx.connectSocket({ url: url, method: ‘GET’ }); wxst.onOpen(res => { console.info(‘连接打开成功’); }); wxst.onError(res => { console.info(‘连接识别’); console.error(res); }); wxst.onMessage(res => { var data原创 2021-04-26 15:52:18 · 731 阅读 · 0 评论