摘要: 如果你不是很了解Event事件,建议先看我上一篇随文javascript:理解DOM事件。或者直接看下文workerapi。hack首先,我们需要实例一个Worker的对象,浏览器会根据新创建的worker对象新开一个接口,此接口会处理客户端与indexedDB数据库之间的通信。这里的数据库是指浏览... 阅读全文
posted @ 2015-12-24 21:33 微宇宙 阅读(2197) 评论(1) 推荐(1)
摘要: 以前,我一直喜欢用console.log(do some thing)去执行输出的类型和值,想马上看到弹出的信息,就会直接在浏览器alert()一下,这些是基础知识。 稍微复杂一点点,就要用到判断语句,if else进行条件判断,话说if条件else否则,这样的判断对于写程序代码的码侬已经是非常熟悉 阅读全文
posted @ 2015-10-12 23:46 微宇宙 阅读(1535) 评论(2) 推荐(2)
摘要: 如何去掉react-antd输入框的边框光晕 .ant-input:focus, .ant-input-focused, .ant-input-affix-wrapper:focus, .ant-input-affix-wrapper-focused { border-color: #00b574 阅读全文
posted @ 2026-06-16 19:34 微宇宙 阅读(3) 评论(0) 推荐(0)
摘要: 中间值就是 具体值 根据窗口分辨率最大的宽计算的来的。 中间值 = 66 / 1920 * 100vw 左右两边分别是最小值,和最大值。 height: clamp(16px, (66 / 1920) * 100vw, 66px); 封装了基于less写法的函数。直接 调用即可 .box { .he 阅读全文
posted @ 2026-06-12 14:31 微宇宙 阅读(4) 评论(0) 推荐(0)
摘要: 全屏显示的方式 新写法: 这是顶部定义缩放的缩放比 :root { --base-scale: min(1, 100vw / 1920, 100vh / 1080); width: 100%; aspect-ratio: 1920 / 1080; } 布局缩放写法 - calc 比如这个外边距mar 阅读全文
posted @ 2026-06-08 14:45 微宇宙 阅读(4) 评论(0) 推荐(0)
摘要: 方向盘的动画特效 const options = { // backgroundColor: '#0E1327', // 画布背景 title: [ // 标题 { text: '当前功率(KW)', left: 'center', top: '64%', textStyle: { color: ' 阅读全文
posted @ 2026-06-05 14:57 微宇宙 阅读(4) 评论(0) 推荐(0)
摘要: 小程序开发的头部设计组件。 custom-navbar.json { "component": true, "usingComponents": {} } View Code custom-navbar.js Component({ properties: { // 导航栏标题 title: { t 阅读全文
posted @ 2026-06-02 14:39 微宇宙 阅读(2) 评论(0) 推荐(0)
摘要: 手机上要显示echart折线图数据。 从ec-echart仓库获取案例。 wx-canvas.js export default class WxCanvas { constructor(ctx, canvasId, isNew, canvasNode) { this.ctx = ctx; this 阅读全文
posted @ 2026-06-02 11:37 微宇宙 阅读(9) 评论(0) 推荐(0)
摘要: 如果提交审核不通过。要完善协议。报错内容如下: 如手机号不通过,可以写- 绑定注册账户。 如果截切版不通过,可以写- 复制填写账号 如果地理信息,可以写-获取打卡范围信息。 如果还是提交审核不通过。 你好,你的小程序【登录】涉及收集、使用和存储用户信息,请补充增加或完善《用户服务协议》及《隐私政策》 阅读全文
posted @ 2026-05-30 13:48 微宇宙 阅读(5) 评论(0) 推荐(0)
摘要: 在picker日期控件设置样式,日期显示无法居中。 要在picker设置 display:grid 阅读全文
posted @ 2026-05-29 10:35 微宇宙 阅读(3) 评论(0) 推荐(0)
摘要: 设置折线图的连线显示设置方式。 平滑曲线 在series 对象元素给 smooth 设置为true 梯度线 在series 对象元素给 step 设置为 middle step: 'middle' 连线的节点设置 在series 对象元素给 symbolSize 设置数字 symbolSize: 2 阅读全文
posted @ 2026-05-26 19:16 微宇宙 阅读(2) 评论(0) 推荐(0)
摘要: 在移动端看折线图,鼠标模式,看到提示内容会出现阴影黑色在内容中。 去掉阴影的模式。 tooltip: { trigger: "axis", borderColor: "#fff", shadowOffsetX: 0, shadowOffsetY: 0, textStyle: { fontSize: 阅读全文
posted @ 2026-05-21 18:06 微宇宙 阅读(8) 评论(0) 推荐(0)