摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style> .box { position: relative; width: 50px; height: 50px; b 阅读全文
posted @ 2022-03-31 17:52 Zel+_+ 阅读(150) 评论(0) 推荐(0) 编辑
摘要: <?php namespace Home\Service; require_once 'vendor/autoload.php'; // \PhpOffice\PhpWord\TemplateProcessor /** * 自定义 克隆多行 * Class TemplateProcessor * @ 阅读全文
posted @ 2022-03-10 17:52 Zel+_+ 阅读(959) 评论(0) 推荐(0) 编辑
摘要: # 卸载系统当前的libreoffice,执行以下命令 yum remove libreoffice-* # 安装libreoffice6.4 可能会提示库文件找不到,如 libcairo.so.2,libcups.so.2,libSM.so.6 等,执行下面几条命令安装需要的库: yum inst 阅读全文
posted @ 2021-12-07 11:33 Zel+_+ 阅读(819) 评论(0) 推荐(1) 编辑
摘要: # jwt github.com/dgrijalva/jwt-go # redis github.com/go-redis/redis/v8 # rabbitmq github.com/streadway/amqp # rocketmq github.com/apache/rocketmq-clie 阅读全文
posted @ 2021-01-02 13:10 Zel+_+ 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 前提:Windows平台 pom.xml <!-- documents4j word转pdf --> <dependency> <groupId>com.documents4j</groupId> <artifactId>documents4j-local</artifactId> <version 阅读全文
posted @ 2021-01-02 13:02 Zel+_+ 阅读(1825) 评论(4) 推荐(2) 编辑
摘要: // 获取图片宽度高度 需要引入格式包 "image/png"等 import ( "fmt" "image" _ "image/jpeg" _ "image/png" "os" ) imagePath := "/public/logo.png" file, _ := os.Open(imagePa 阅读全文
posted @ 2021-01-02 12:55 Zel+_+ 阅读(74) 评论(0) 推荐(0) 编辑
摘要: // float64保留2位小数 func Decimal(value float64) float64 { value, _ = strconv.ParseFloat(fmt.Sprintf("%.2f", value), 64) return value } // 获取两点之间的距离 单位km 阅读全文
posted @ 2021-01-02 12:50 Zel+_+ 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 环境 PHP7.3 MySQL8.0.15 这里出错的原因是 row 在MySQL8 版本是 关键字 album_add.php 中 333行 album_edit.php 中 636行 $query = "INSERT INTO `$addtable`(aid,typeid,redirecturl 阅读全文
posted @ 2020-08-31 10:48 Zel+_+ 阅读(453) 评论(0) 推荐(0) 编辑
摘要: 使用 strconv 包 strconv包实现了基本数据类型和其字符串表示的相互转换 package main import ( "fmt" "strconv" ) // strconv.Itoa():整型转字符串 // strconv.Atoi():字符串转整型 返回2个值,第一个是值,第二个是错 阅读全文
posted @ 2020-08-31 10:44 Zel+_+ 阅读(4949) 评论(0) 推荐(0) 编辑
摘要: IDEA 打开 Settings -> Build, Execution, Deployment -> Build Tools -> Maven 修改 Maven home directory 为 自行安装的文件夹 User settings file Local repository 相应修改 直 阅读全文
posted @ 2020-08-31 10:29 Zel+_+ 阅读(227) 评论(0) 推荐(0) 编辑