摘要: 1. 英文字符串超长换行使用系统方法wordwrap 2. 中文字符串超长换行自行定义方法mb_wordwrap /** * Notes:对传入的中文字符串处理,如果字符串超过限定的长度,则自动进行换行 * docs: */ function mb_wordwrap($str, $width = 8 阅读全文
posted @ 2023-07-28 16:51 vlson 阅读(254) 评论(0) 推荐(0) 编辑
摘要: WSL环境已经配置好,现在开始在Ubuntu里面安装Java! 一 下载tar包方式手动安装 1.1 下载地址:https://www.oracle.com/java/technologies/downloads/ 1.2 在上面的地址中选择合适的版本进行下载,然后将下载的安装包拷贝到wsl系统所在 阅读全文
posted @ 2023-07-16 12:09 vlson 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 最近在瞎折腾东西,尝试下windows的wsl,试着能不能学习下Golang,wsl和Go已经搞完了,然后发现vsCode可以直连wsl,搞一下! 1. 安装远程资源管理器 首先安装远程资源管理器,我的vscode没有,打开扩展(Ctrl+Shift+X),输入remote搜索,安装remote-s 阅读全文
posted @ 2023-03-19 21:13 vlson 阅读(2111) 评论(0) 推荐(0) 编辑
摘要: 系统环境为windows11安装的wsl,wsl使用的系统为Ubuntu-20.04。 1. 查看系统版本: lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.5 阅读全文
posted @ 2023-03-18 23:52 vlson 阅读(112) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/it-cen/p/5234345.html 阅读全文
posted @ 2023-03-16 23:02 vlson 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 原因:在虚拟机中以最小化方式安装centos7,后无法上网,因为centos7默认网卡未激活; 而且在sbin目录中没有ifconfig文件,这是因为centos7已经不使用 ifconfig命令了,已经用ip命令代替; 并且网卡名称也不是eth0了,而是改成eno16777736了。 解决ifco 阅读全文
posted @ 2023-03-16 23:01 vlson 阅读(61) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/lih062624/article/details/70226085 阅读全文
posted @ 2023-03-16 23:00 vlson 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 1. 查看已安装的wsl: 打开powershell,输入wsl.exe -l -v 2. 停止linux子系统 要想迁移子系统,如果上一步查看的状态为Running,必须先停止系统 wsl.exe --shutdown 3. 导出linux子系统 wsl.exe --export Ubuntu-2 阅读全文
posted @ 2023-03-16 22:53 vlson 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 问题:win11通过商店安装Ubuntu,打开报错误代码0x800701bc Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x800701bc Error: 0x80070 阅读全文
posted @ 2023-03-14 17:02 vlson 阅读(683) 评论(0) 推荐(0) 编辑
摘要: 问题描述:当表格行比较多时,向下滚动查看下方行内容,标题会跟随页面滚动到上面,这样查看下面的内容时某个字段时的含义就还得翻上去查看; 解决方法:将表头thead设置 成position:sicky; top:-12px,再次滚动表头就不会出现上述情况了。 转载自:https://www.cnblog 阅读全文
posted @ 2022-08-17 09:48 vlson 阅读(1711) 评论(0) 推荐(0) 编辑