首页
  • 在微信等 webview 中无法修改title的情况

    加载一个空的iframe,触发document加载事件,使微信webview重新获取title

    export function initTitle(title = "") {
      // document.title = title;
      var iframe = document.createElement('iframe');
    阅读全文
  • Docker 安装verdaccio

    1 使用 docker 镜像安装

    在 docker 下安装 verdaccio 镜像使用如下命令即可:

    docker pull verdaccio/verdaccio

    如果安装失败,可以修改国内镜像

    进入docker配置目录

    cd /etc/docker

    修改 daemon.json 文件 ,不存在可以 `touch daemon.

    阅读全文
  • Android Studio (version 2022.2) Unable to find bundled Java version.

    PS C:\Windows\system32> flutter doctor
    Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
    阅读全文
  • keepAlive保存滚动位置

    vue2

     data() {
        return {
          scTop: 0//滚动距离顶部的位置
        }
      },
      // 进入该路由时
      activated() {
        document.documentElement.scrollTop = this.scTop
      },
    
      // 离开该路由前
    阅读全文
  • 解决H5页面在iOS系统中滑动回弹效果(橡皮筋效果)导致的穿透问题

    使用插件inobounce(但是只适用于ios系统,安卓不适用)
    下载插件:

    npm install inobounce -s

    在需要处理的页面上添加如下代码:
    vue2

    <script>
    import inobounce from 'inobounce'
    export default {
      data() {
        return {  }
      },
    阅读全文
  • vue3 setup + ts + vite 项目问题解决 @types/node 提示

    vue3 setup + ts + vite 项目问题解决:Cannot find module ... or its corresponding type declarations.(ts2307)

    node 提示:
    Cannot find module 'path' or its corresponding type declarations.
    `Cannot find m

    阅读全文
  • flutter 插件

    • octo_image
    • flutter_launcher_icons
    • animated_text_kit

    octo_image 图片加载

    文档:https://pub.flutter-io.cn/packages/octo_image

    OctoImage(
      image: CachedNetworkImageProvider(
    阅读全文
  • centos 安装 node

    未安装 wget 已安装跳过

    yum -y install wget

    安装gcc 已安装跳过

    yum install gcc gcc-c++

    下载node包

    wget https://npm.taobao.org/mirrors/node/v14.17.0/node-v14.17.0-linux-x64.tar.gz
    阅读全文
  • 前端算法,深度遍历和广度遍历

    深度遍历

    // 深度遍历
    function deepEach(nodes) {
      if (!nodes.length) {
        return;
      }
      const arr = [];
      for (let i = 0; i < nodes.length; i++) {
        const node = nodes[i];
    阅读全文
  • 生活随记·游记《金陵小镇·燕集里》

    ![W
    阅读全文
  • 上一页 1 2 3 4 5 6 7 8 9 10 下一页
Taoqun
陶群
1994-09-07
taoquns@foxmail.com
前端开发
南京

文章分类

Mac
算法
前端
python
golang
mysql
node
linux
随笔
生活
游记

我的作品

记录体重Pro(小程序)
闲蝉科技

其他推荐

2018-04-26
webpack 开启 gzip 打包 减小文件大小
centos7 安装 mysql
centos 安装 docker
npm canvas 安装失败
leetCode 无重复字符的长子串
docker 部署 golang应用
Android Studio (version 2022.2) Unable to find bundled Java version.
iphone 模拟器 Unable to boot the Simulator. 错误处理
h5移动端rem使用750设计稿
开发者:Taoqun

备案/许可证编号为:皖ICP备17027395号

闲蝉科技
Ron · 一个无人问津的小站
小印章