上一页 1 2 3 4 5 6 7 ··· 18 下一页
摘要: 知乎话题:https://zhuanlan.zhihu.com/p/648439012 uniapp与鸿蒙:鸿蒙已经发布4.0,请问uniapp是否将兼容鸿蒙系统提上日程?(https://ask.dcloud.net.cn/question/181493) 鸿蒙(HarmonyOS)是华为公司自主 阅读全文
posted @ 2024-01-10 15:09 yoona-lin 阅读(544) 评论(0) 推荐(0) 编辑
摘要: import { saveAs } from 'file-saver'; /** * @description: JavaScript 动态生成的 a 标签进行下载, * * * * * * * * *可以使用 XMLHttpRequest 对象来发起 HTTP 请求,并在请求完成后获取响应数据 * 阅读全文
posted @ 2024-01-02 10:56 yoona-lin 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 要在前端跳转到第三方链接时携带 token,你可以使用以下几种方法: URL 参数:将 token 作为 URL 的查询参数传递给第三方链接。例如,将 token 添加到链接的末尾,如 https://example.com/third-party?token=your_token_here。第三方 阅读全文
posted @ 2024-01-02 10:50 yoona-lin 阅读(2052) 评论(0) 推荐(0) 编辑
摘要: <View class="tabs" style="display: flex; justify-content: space-between"> <View class="tabs-item" style="width: 50%"> <Button class="tabs-btn" :class= 阅读全文
posted @ 2023-12-29 18:10 yoona-lin 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 除了十六进制(0x)表示法外,其他进制可以使用不同的前缀或函数来表示。下面是一些常见进制的表示方法: 二进制(Binary):以 0b 或 0B 作为前缀,后跟一串由 0 和 1 组成的数字。例如,二进制数 101 可以表示为 0b101。 八进制(Octal):以 0 作为前缀,后跟一串由 0 到 阅读全文
posted @ 2023-12-29 15:27 yoona-lin 阅读(722) 评论(0) 推荐(0) 编辑
摘要: 代码解析 function handleAuthReady() { const ywAuth = (window as any).ywAuth; if (ywAuth) { return Promise.resolve(ywAuth); } return new Promise(resolve => 阅读全文
posted @ 2023-12-29 10:30 yoona-lin 阅读(268) 评论(0) 推荐(0) 编辑
摘要: import { EventEmitter } from 'eventemitter3'; class H5SSE extends EventEmitter 代码解析 通过eventemitter3源码学习Javascript设计模式:发布-订阅(观察者模式) 发布-订阅模式又叫观察者模式,它定义对 阅读全文
posted @ 2023-12-28 16:36 yoona-lin 阅读(30) 评论(0) 推荐(0) 编辑
摘要: SSE(Server-Sent Events)是一种在客户端和服务器之间实现单向实时通信的技术。它允许服务器向客户端推送数据,而无需客户端发起请求。 SSE(Server-Sent Events)在大多数现代浏览器中都有良好的支持,但仍然存在一些兼容性问题,特别是在旧版浏览器和移动设备上。下面是一些 阅读全文
posted @ 2023-12-28 14:17 yoona-lin 阅读(1109) 评论(0) 推荐(0) 编辑
摘要: import { EventEmitter } from 'eventemitter3'; class H5SSE extends EventEmitter { static instance: H5SSE; static getInstance() { if (!H5SSE.instance) { 阅读全文
posted @ 2023-12-28 12:00 yoona-lin 阅读(4) 评论(0) 推荐(0) 编辑
摘要: https://uiverse.io/barisdogansutcu/light-rat-32 <svg viewBox="25 25 50 50"> <circle r="20" cy="50" cx="50"></circle> </svg> svg { width: 3.25em; trans 阅读全文
posted @ 2023-12-21 15:22 yoona-lin 阅读(62) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 18 下一页