iconfont 为大家提供了很多开箱即用的图标库,同时也提供了灵活的集成办法。 在一个项目中嵌入你想要iconfont字体图标,跟着下面的步骤一步步来实践一下: 创建项目 在 iconfont 的【资源管理 => 我的项目】中创建一个项目,取个名字,字体格式根据需求选择,一般就默认加上一个Base64。 将图标添加到项目 方法就是在素材库中搜索想要的图标,然后点图标上的购物车图标(添加入库),然 […]
composer 出现 “Fatal error: Allowed memory size of * bytes exhausted (tried to allocate 4096 bytes) …”
在使用composer时出现内存超出限制错误: PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://D:/xampp/php/composer.phar/src/Composer/DependencyResolver/RuleSetGe […]
golang笔记:json格式的使用
在golang中处理json使用内置的encoding/json标准库。下面示例介绍了通过map和结构体struct编码json,以及解析json到结构体中。 json encode 编码json使用json.Marshal()函数可以对一组数据进行JSON格式的编码。 package main import ( “encoding/json” “fmt” ) type Person struct […]
ThinkBook 14P 开机出现 “New CPU installed,fTPM NV corrupted or fTPM NV structure changed”
笔记本电脑 ThinkBook 14P 在使用没有任何异常的情况下正常关机,第二天早上开机过了 Lenovo Logo 图之后,弹出一个错误窗口: New CPU installed,fTPM NV corrupted or fTPM NV structure changed[/caption] 电脑配置 型号:ThinkBook 14P CPU:AMD Ryzen 7 580 […]
github报错”You’re using an RSA key with SHA-1, which is no longer allowed…“
今天从github拉取私有项目时,出现报错,内容如下: ERROR: You’re using an RSA key with SHA-1, which is no longer allowed. Please use a newer client or a different key type. Please see https://github.blog/2021-09-01-improvin […]
Windows开发环境XAMPP多版本PHP支持
目前在Windows下开发使用xampp环境集成的php7.4版本,一个旧项目使用的是php7.2版本,以这种情况为例,来配置一下xampp多版本切换。 环境 系统:Windows 11 专业版 21H2 22000.556 xampp:xampp-windows-x64-7.4.27-2-VC15 apche: 2.4.52 (Win64) php:7.4.27 (x64) 现有目录: apac […]