git-askpass-error

git 的账号密码错误情况 error 前段时间使用 phpstrom 中的 git 出现了一个错误 1 2 3 4 Fetch failed error: unable to read askpass response from '..\tmp\intellij-git-askpass.bat' error: failed to execute prompt script (exit code 1) fatal: could not read Username for 'http://xxx:3000': No error 大体情况就是某一次操

vue-transition

对 vue 的渐变效果的简单使用 单个节点的渐变效果 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <tit

使用 axios-post 提交数据

继 vue-resource 之后, axios 是 vue 官方首推的网络请求组件 axios简介 它的功能更强大,而且可以无痛迁移到新的项目当中,有尤大的原话就是: 最近团队讨论了一下,A

jquery 中$(this) 和 this 的区别

说一个常识性的东西,帮助自己回忆一下 一句话, $(this)是 jquery 的对象,而 this 是 html 元素对象 什么意思呢? $(this) 可以调用jquery 中的方法 1 2 $(this).val() $(this).addClass() 而 this

go-http

用于了解 http 包的一些运行机制 首先一个简单的例子 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 package main import ( "fmt" "net/http" "strings" "log" ) func sayhelloName(w http.ResponseWriter, r *http.Request) { r.ParseForm() //

go-comma-switch

简单介绍下 comma-ok 和 switch 用来判定变量类型 上篇博客介绍了接口,接口在实际应用中可以当做一个万用变量来用,可以用一个空接口来存储多种类型的变量 但是,当我

go-interface

关于 go 语言接口的简单介绍 接口对于 go 实现面向对象来说非常重要,如果没有它 go 的结构体(struct)也就只能存储一些信息, 但是相关的方法将会变得

go-simple-webserver-demo

用 go 写的一个简单的 http 服务 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 package main import ( "fmt" "net/http" "strings" "log" ) func sayhelloName(w http.ResponseWriter, r *http.Request) { r.ParseForm() //解析参数,默认不解析

git-submodule

项目中经常会使用到第三方的 git 库,将三方库整合到项目中最简单的办法就是复制粘贴,但是如果这个库升级了一个很酷炫的功能,你要怎么整合进来呢? 这就