Skip to content

翻了车的老司机

其实我一直在你身边

Search for:

zzs10086

347RSS Feed

zzs10086 's Posts

vue Element 引入富文本编辑器 vue-quill-editor

npm install vue-quill-editor –save
import VueQuillEditor from ‘vue-quill-editor’
Vue.use(VueQuillEditor)

  • Posted on: 2018年8月17日 2018年8月17日
  • Author: zzs10086
  • Categories: vue

vue.js 引入axios

安装axios cnpm install axios –save
import axios from ‘axios’
Vue.prototype.$http = axios

  • Posted on: 2018年8月17日 2018年8月17日
  • Author: zzs10086
  • Categories: vue

vue 安装使用comment.js 格式化时间

cnpm install moment
return this.$moment.unix(row.add_time).format(“YYYY-MM-DD HH:mm:ss”);

  • Posted on: 2018年8月17日 2018年8月17日
  • Author: zzs10086
  • Categories: vue

GOLANG学习32. 命令行参数获取

flag.StringVar(&confPath, “c”, “”, “please input confPath”)
flag.IntVar(&logLevel, “d”, 10, “please input log level”)

  • Posted on: 2018年5月24日 2018年5月24日
  • Author: zzs10086
  • Categories: go

GOLANG学习31. 文件读取,一次性读取文件内容

str, err := ioutil.ReadFile(“C:/test.txt”)

  • Posted on: 2018年5月24日 2018年5月24日
  • Author: zzs10086
  • Categories: go

GOLANG学习30. 文件读取,逐行读取文件

把文件内容读到内存里,再逐行读取
reader := bufio.NewReader(file)
str, _, err := reader.ReadLine()

  • Posted on: 2018年5月24日 2018年5月24日
  • Author: zzs10086
  • Categories: go

GOLANG学习29. 反射获取字段、方法、调用

numOfMethod := val.NumMethod()
numOfFeild := val.NumField()

  • Posted on: 2018年5月23日 2018年5月23日
  • Author: zzs10086
  • Categories: go

GOLANG学习28. 反射

反射:可以在运行时冬天的获取变量的相关信息
类型 t := reflect.TypeOf(i)
值 v := reflect.ValueOf(i)
类别 k := v.Kind()

  • Posted on: 2018年5月23日 2018年5月23日
  • Author: zzs10086
  • Categories: go

GOLANG学习27. 接口定义

结构体struct 实现了接口的方法,就自动实现了接口的定义

  • Posted on: 2018年5月22日 2018年5月22日
  • Author: zzs10086
  • Categories: go

GOLANG学习26. 结构体继承

如果一个struct 嵌套了另一个匿名结构体,那么这个struct 可以直接访问这个匿名结构体里面的方法和字段,从而实现继承
如果一个struct 嵌套了另一个有名的结构体,那么这个模式就叫组合

  • Posted on: 2018年5月22日 2018年5月22日
  • Author: zzs10086
  • Categories: go

Pagination

Previous page Page: 1 … Page: 19 Page: 20 Page: 21 Page: 22 Page: 23 Page: 24 Page: 25 Page: 26 Page: 27 Page: 28 Page: 29 … Page: 35 Next page

分类目录

  • docker
  • elasticsearch
  • git
  • go
  • java
  • javascript
  • laravel
  • Linux
  • mysql
  • nginx
  • node.js
  • php
  • redis
  • shell
  • vue
  • webpack
  • 小程序
Search for:
2025年五月
一 二 三 四 五 六 日
« 7月    
 1234
567891011
12131415161718
19202122232425
262728293031  

近期文章

  • wordpress如何开启全站https
  • CentOS上安装Redis
  • ECMAScript 数组遍历
  • ECMAScript 数组
  • Ecmascript Push 和 Pop 方法

近期评论

    © 2025 翻了车的老司机. 我在你身边绕了一个圈,回到原点你却已在远方。

    苏ICP备16035736号-3

    友情链接:一览网  江苏景威控股集团有限公司