首页
  • pm2 常用命令

    pm2 常用命令

    // 启动 npm
    pm2 --name testName npm -- run start
    // 启动 yarn
    pm2 --name testName yarn -- start
    
    // 查看任务
    pm2 ls
    
    // 查看log日志
    pm2 log 1
    
    pm2 save --- 保存列表
    pm2 startup   --- 开机自启动
    
    阅读全文
  • 在微信等 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];
    阅读全文
  • 1 2 3 4 5 6 7 8 9 10 下一页
Taoqun
陶群
1994-09-07
taoquns@foxmail.com
前端开发
南京

文章分类

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

我的作品

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

其他推荐

webpack vue 外部css添加 postcss
年中总结一下吧
docker 入门 命令
go-gin框架基本接口
flutter 学习入门 创建项目并运行
centos添加用户并赋予管理员权限
开发者:Taoqun

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

闲蝉科技