摘要:
一,图片横向拼接: 说明:+append 横向把多张图片拼接在一起,可以多于2张,图片按上边缘对齐,最后一个参数是目标图片 例如: [lhdop@blog img3]$ convert +append fendou.jpeg hdy.jpeg h1.jpeg 效果: 说明:刘宏缔的架构森林是一个专注 阅读全文
摘要:
一,composer版本升级: 1,查看当前版本: liuhongdi@lhdpc:/data/php/tpapibase$ composer --version Composer version 2.3.5 2022-04-13 16:43:00 2,切到root权限后升级composer: ro 阅读全文
摘要:
一,报错信息: Deprecation Notice in ./libraries/classes/Url.php#251 Array and string offset access syntax with curly braces is deprecated Backtrace ./vendor 阅读全文
摘要:
一,js代码: <html> <head> <meta charset="utf-8"/> <title>测试</title> </head> <body style="padding:0px;margin: 0px;"> <!--background--> <div style="width:10 阅读全文
摘要:
一,js代码 <html> <head> <meta charset="utf-8"/> <title>测试</title> </head> <body style="padding:0px;margin: 0px;"> <button id="btn">点击</button> <button id 阅读全文
摘要:
一,js代码: <html> <head> <meta charset="utf-8"/> <title>测试</title> </head> <body> <img id="img" src="" /> <script> //记录开始时间 let a = new Date(); console.l 阅读全文
摘要:
一,得到图片的base64 1,打开页面后,在当前页面打开 开发者工具 菜单->更多工具->开发者工具 2,在elements页面,找到目标canvas,给它加一个id,如图: 3,在console标签页,输入: document.getElementById('dest').toDataURL(" 阅读全文
摘要:
一,安装html2canvas 1,官网: https://html2canvas.hertzen.com/ 如图: 代码站: https://github.com/niklasvh/html2canvas 2,通过npm安装 liuhongdi@lhdpc:/data/vue/touch$ npm 阅读全文
摘要:
一,js代码: <template> <div> <div style="width:800px;margin: auto;display: flex;flex-direction: column;"> <div>请选择上传图片: <input type="file" id="back" ref=" 阅读全文
摘要:
一,js代码: <template> <div> <div style="width:800px;margin: auto;display: flex;flex-direction: column;"> <div>请选择上传图片: <input type="file" id="back" ref=" 阅读全文