上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 114 下一页
摘要: ## 划重点(理解看悟性) ``` ``` ## 注释 1. .readonly 类选择器 2. .el-textarea__inner 类选择器覆盖默认样式 3. :deep 选择一个元素的所有子孙元素 ## 鸣谢 [https://blog.csdn.net/Zhouzsn/article/de 阅读全文
posted @ 2022-06-02 09:35 jiftle 阅读(2827) 评论(0) 推荐(0)
摘要: 原文: https://www.bookstack.cn/read/GoFrame-1.13/database-gdb-driver.md 驱动开发 驱动接口 Driver接口 DB接口 驱动注册 新增第三方驱动 自定义回调处理 驱动开发 默认情况下,gdb模块已经提供了一些常用的驱动支持,并允许开 阅读全文
posted @ 2022-05-31 09:59 jiftle 阅读(551) 评论(0) 推荐(0)
摘要: sout, err := linux.ExecCmd(action) if err != nil { errcode := 0 exitError, ok := err.(*exec.ExitError) if ok { errcode = exitError.ExitCode() } out := 阅读全文
posted @ 2022-05-26 16:56 jiftle 阅读(556) 评论(0) 推荐(0)
摘要: cat sh-push-serv.sh #!/bin/sh src_dir=./boxkeeper dest_dir=/opt/boxkeeper host=192.168.22.11 port=60139 username=root password='1234' # 将远程服务器上的文件拷贝到本 阅读全文
posted @ 2022-05-25 08:39 jiftle 阅读(106) 评论(0) 推荐(0)
摘要: ```golang // 三目运算的函数 func ternary(a bool, b, c bool) bool { if a { return b } return c } ``` ## 参考 [https://chuna2.787528.xyz/GetcharZp/p/15172602.html] 阅读全文
posted @ 2022-05-24 16:18 jiftle 阅读(430) 评论(0) 推荐(0)
摘要: 现在有一个这样的需求:执行一个脚本,自动从指定服务器上全量拉取指定目录的文件,远程服务器的用户名、端口、密码、目录配置在执行的shell脚本中。要实现这样的需求,我们使用scp 来实现,但是scp 在执行的过程中需要输入密码,所以我们就需要用到一个工具 “expect” 来实现自动化脚本。关于 ex 阅读全文
posted @ 2022-05-24 11:06 jiftle 阅读(747) 评论(0) 推荐(0)
摘要: Cobra提供的功能 简易的子命令行模式,如 app server, app fetch等等 完全兼容posix命令行模式 嵌套子命令subcommand 支持全局,局部,串联flags 使用Cobra很容易的生成应用程序和命令,使用cobra create appname 和cobra add c 阅读全文
posted @ 2022-05-23 23:50 jiftle 阅读(131) 评论(0) 推荐(0)
摘要: golang 编写命令行程序,需要得到外部输入参数,可使用flag包. 使用如下 file := flag.String("file", "../resource/001.mnt", "asm file, eg. 001.mnt") flag.Parse() fmt.Println(*file) 阅读全文
posted @ 2022-05-23 23:41 jiftle 阅读(97) 评论(0) 推荐(0)
摘要: CodeMirror https://codemirror.net/6/ 阅读全文
posted @ 2022-05-23 18:14 jiftle 阅读(64) 评论(0) 推荐(0)
摘要: 概述 算符优先分析法(Operator Precedence Parse)是仿效四则运算的计算过程而构造的一种语法分析方法。算符优先分析法的关键是比较两个相继出现的终结符的优先级而决定应采取的动作。 优点:简单,有效,适合表达式的分析。 缺点:只适合于算符优先文法,是一个不大的文法类。名词解释定义: 阅读全文
posted @ 2022-05-20 00:11 jiftle 阅读(380) 评论(0) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 114 下一页