首页
  • dom scrollTo 平滑滚动

    dom scrollTo 平滑滚动

    Element.scrollTo({
        left: 0,
        top: 100,
        behavior: 'smooth'
    })
    阅读全文
  • centos 安装 docker

    替换 阿里云 yum 源

    #下载阿里yum源2
    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 
    
    #生成仓库缓存 
    yum makecache  
     

    安装 docker

    yum install docker -y
    
    阅读全文
  • github 同步 代理设置

    全局设置

    git config --global http.proxy http://127.0.0.1:1080
    git config --global https.proxy https://127.0.0.1:1080

    只代理github

    阅读全文
  • gitbook 安装和使用

    gitbook安装和使用

    // 全局安装
    sudo npm -g i gitbook-cli
    // 初始化
    gitbook init
    //本地服务
    gitbook serve 
    //打包
    gitbook build 

    目录配置 SUMMARY.md

    # 目录
    
    * [前言](README.md)
    阅读全文
  • go-gin框架基本接口

    package main
    
    import (
        "fmt"
        "github.com/gin-gonic/gin"
        "net/http"
    )
    
    type User struct {
        Name string `json:"name"`
        Age  int    `json:"age"`
    }
    
    func main() {
    
        r := gin.Default()
    
    阅读全文
  • npm 切换淘宝源和npm源

    
    npm install -g nrm 
    
    nrm use taobao
    
    nrm use npm
    
    阅读全文
  • npm 自建 包

    新建本地目录文件夹,初始化

    // 新建文件夹 然后
    npm init

    新建index.js

    function hello( name ){
        console.log( "hello" + name )
    }
    exports.hello = hello

    登陆npm账户 登陆和发布需要切换到npm官方源,见下↓

    npm adduser
    阅读全文
  • go 学习 包的导出

    | - src
        - index.go
        - libs
            - index.go

    libs / index.go

    package libs // 属于哪个包
    //  方法名 首字母 大写才能导出
    func Count( a int, b int ) int {
        return a + b
    }
    

    index.go

    阅读全文
  • go 学习 hello world

    文件index.go

    // 定义包名 每个go程序都必须包含一个main的包名,表示一个可以独立执行的程序
    package main
    
    // 导入包名 告诉 go程序 需要的使用的包名称
    import "fmt"
    
    // 必须包含的 main 主函数
    func main() {
        fmt.Println("Hello, World!")
    }
    阅读全文
  • react 添加代理 proxy

    react package.json中proxy的配置如下

    "proxy": {
        "/api/rjwl": {
          "target": "http://47.94.142.215:8081",
          "changeOrigin": true
        }
    }

    报错:

    阅读全文
  • 上一页 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
webpack vue-cli3 压缩图片
python 将视频转换成音频
npm 自建 包
go 学习
解决 Mac 升级为 Big Sur 系统后 Homebrew 命令失效的问题
mac 使用rz、sz
flutter 开发 设置国内代理
开发者:Taoqun

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

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