Clarity
Home
Archives
About
Tools icon
clock qrcode
English Português
  • 用 Docker 快速架设一个 Anki 同步服务器

    Sep 29, 2021 · 2 min read · anki docker  ·
    Share on:

    Anki 是一个辅助记忆软件,{{ 简介}}。最近打算用它来快速记忆一些知识,但是 Anki 的服务器架设在国外,导致同步速度很慢,为了解决这个问题,我参考 文档地址 打算自己架设一个 Anki 同步服务器。

    Read More
  • echarts

    Sep 24, 2021 · 1 min read · dom  ·
    Share on:
    echarts

    ECharts 图例(legend)分两行显示并且初始化设置不选中状态 请问visualMap中的手柄可否精确控制位置 #2940 markLine没有tooltip层吗?希望鼠标经过markLine时可以把markLine信息在tooltip中显示。

    Read More
  • Using Notices

    Aug 20, 2021 · 2 min read  ·
    Share on:

    The "Notices" shortcode enables you to call out pieces of information - sidebars, warnings, tips, etc. To create a notice on a page, you can use the notice shortcode. You use the notice shortcode, with the first parameter being one of note, info, tip, and warning. Then add a title for your note in quotes as …

    Read More
  • 将两次 Git 提交合并为一次

    Aug 3, 2021 · 1 min read · git  ·
    Share on:

    1git rebase -i HEAD~2

    Read More
  • 封装日期相关函数

    Jul 29, 2021 · 1 min read · 日期  ·
    Share on:

    获取某年某月共有多少天 1function getDaysCountByMonth (year, month) { 2 if (typeof month !== 'number' || month < 1 || month > 12) { 3 throw new Error('请输入月份,1-12 之间的数字') 4 return; 5 } 6 return new Date(year, month, 0).getDate(); 7}

    Read More
  • Vue.js 项目中二次封装一个按钮组件

    Jul 28, 2021 · 1 min read · vue 组件  ·
    Share on:

    Vue2 中容易被忽略的两个重要的 API 介绍 Vue2 中封装 1<template> 2 <a-button 3 icon="sync" 4 title="刷新" 5 v-bind="$attrs" 6 v-on="$listeners" 7 /> 8</template> 9 10<script> 11/** 12* 和 a-button 外观、行为完全一致 13* 区别是预设 icon 和 title 属性 14*/ 15export default { 16 inheritAttrs: false, 17} …

    Read More
  • Git 秘钥

    Jul 26, 2021 · 1 min read · dom  ·
    Share on:

    https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh/checking-for-existing-ssh-keys …

    Read More
  • 封装简易 DOM 选择器

    Jul 21, 2021 · 1 min read · dom  ·
    Share on:

    JavaScript 原生的 DOM 选择器代码写起来太长了,我们像一个简单的办法来简化一下吧。

    Read More
  • 解决 uView Parse 富文本解析器 ready 事件触发时机不准确的问题

    Jul 15, 2021 · 1 min read · 源码 uniapp mp-html  ·
    Share on:

    监听事件bindready,获取高度有时不准确 #195 对应的源码部分 判断 ready 的标准是每 350ms 检查一次高度,两次高度不变化就认为加载完毕,然后返回大小,处理的地方在 这里 这个处理方式确实可能在某些情况下不准确,如果 350ms 总高度不变化就会触发,但这个很难权衡,因为要确保一定准确的话可能这个时间间隔要更长或者多次不变化后再触发,这样的话触发的就会很慢,某些情况下会带来问题(比如进入页面后等待图片加载完要跳转到某个锚点,等待时间过长就会影响体验),所以这里如果要求很高的话可能需要自行调整一下 ps:对于这个问题最准确的获取时机应该是所有图片都触发 load 事件的时候,但由于开启懒加载后,一些图 …

    Read More
  • git subtree 使用记录

    Jul 9, 2021 · 1 min read · git  ·
    Share on:

    参考文章: git subtree教程 1git subtree push --prefix=content/posts post master 目前主要使用这三个命令即可,分别是添加、更新和推送远程。 1git subtree add --prefix=<prefix> <repository> <ref> 2git subtree pull --prefix=<prefix> <repository> <ref> 3git subtree push --prefix=<prefix> <repository> …

    Read More
    • ««
    • «
    • 1
    • 2
    • 3
    • 4
    • »
    • »»

wencaizhang

前端开发.
Read More

Featured Posts

  • Markdown Syntax Guide

Recent Posts

  • 用 Docker 快速架设一个 Anki 同步服务器
  • echarts
  • Using Notices
  • 将两次 Git 提交合并为一次
  • 封装日期相关函数
  • Vue.js 项目中二次封装一个按钮组件
  • Git 秘钥
  • 封装简易 DOM 选择器

Categories

MINICODE 9 其他 6 GIT 2 设计模式 2 BUG-FIX 1 CSS 1 JS 1 OTHER 1 SYNTAX 1 THEMES 1 VUE 1 工具 1

Series

设计模式 2 THEMES-GUIDE 1

Tags

JAVASCRIPT 8 CSS 4 DOM 3 GIT 3 日期 3 DOCKER 2 MARKDOWN 2 NGINX 2 代码重构 2 其他 2 工具 2 ANKI 1 EMOJI 1 FEATURED 1
All Tags
ANKI1 CSS4 DOCKER2 DOM3 EMOJI1 FEATURED1 GIT3 HTML1 INDEX1 JAVASCRIPT8 MARKDOWN2 MOMENTJS1 MP-HTML1 NGINX2 PLACEHOLDER1 PRIVACY1 PROMISE1 SCROLLBAR1 SHORTCODES1 TEXT1 THEMES1 THIS指向1 UBUNTU1 UNIAPP1 VUE1 代码重构2 其他2 备忘1 工具2 开源库1 文本溢出1 日期3 源码1 组件1 责任链模式1 适配器模式1
[A~Z][0~9]
Clarity

Copyright  CLARITY. All Rights Reserved. 感谢 又拍云  提供 CDN 支持