<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>技术栈</title><description>专注于全栈开发</description><link>https://www.easybhu.cn/</link><item><title>Tomohiko Sakamoto 算法，来确定当前日期是星期几</title><link>https://www.easybhu.cn/archives/250.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/250.html</guid><description>Tomohiko Sakamoto 算法是一种计算机程序，用于确定两个日期之间的天数差。该算法基于简单的数学计算，不依赖任何外部库和系统函数，因此它可以用于那些不支持外部库和系统函数的特殊环境。 它可以在不使用复杂的日历计算或内置日历函数的 ...</description><pubDate>Wed, 21 Aug 2024 07:17:18 GMT</pubDate></item><item><title>laravel passport 快速入门</title><link>https://www.easybhu.cn/archives/248.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/248.html</guid><description>Laravel Passport 是 Laravel 框架中的一个包，用于实现 OAuth2 协议，以便你可以安全地为应用程序的 API 提供认证和授权。以下是一个快速入门指南，介绍如何在 Laravel 项目中设置和使用 Passport ...</description><pubDate>Fri, 26 Jul 2024 03:10:54 GMT</pubDate></item><item><title>Centos7Core 快速更换国内源</title><link>https://www.easybhu.cn/archives/247.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/247.html</guid><description>更换 CentOS 7 的软件源至国内的镜像是一个常见的做法，尤其是当你的服务器位于中国时，这可以显著提高 yum 的下载速度和稳定性。以下是一种通用的步骤来更换 CentOS 7 的 yum 源至国内镜像： ### 步骤 1: 备份原有的 ...</description><pubDate>Fri, 19 Jul 2024 02:57:29 GMT</pubDate></item><item><title>Nginx反向代理Kibana，非80端口、非/根代理配置</title><link>https://www.easybhu.cn/archives/246.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/246.html</guid><description>问题：反向代理kibana后，访问 `localhost:8080/kibana` 会重定向为 `localhost/app/kibana` 有没有办法限制kibana保持端口和路由情况下访问。问题Nginx配置如下： ``` server ...</description><pubDate>Wed, 17 Jul 2024 09:29:25 GMT</pubDate></item><item><title>Elasticsearch 是什么</title><link>https://www.easybhu.cn/archives/241.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/241.html</guid><description>Elasticsearch可以被视为一种特殊的数据库，但它与传统的数据库有所不同。Elasticsearch是一个分布式的、基于文档的搜索引擎和分析引擎，它主要聚焦于提供快速的全文搜索能力和数据分析能力。 ![79524bd4d504427 ...</description><pubDate>Wed, 17 Jul 2024 03:31:00 GMT</pubDate></item><item><title>ELK 基本概念入门， 最好有于php、Mysql结合的简单实践</title><link>https://www.easybhu.cn/archives/240.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/240.html</guid><description>ELK Stack，现在通常称为Elastic Stack，是由Elasticsearch、Logstash和Kibana三个主要组件组成的开源工具集，用于收集、存储、分析和可视化大量日志数据。下面是对这三个组件的基本介绍以及如何与PHP和 ...</description><pubDate>Wed, 17 Jul 2024 03:28:00 GMT</pubDate></item><item><title>Docker 部署Jenkins后使用root权限apt-get安装需要软件</title><link>https://www.easybhu.cn/archives/239.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/239.html</guid><description>创建容器 ``` sudo docker run -dit --name=Jenkins -p 8889:8080 -p 50000:50000 --restart=on-failure -v /home/user/jenkins:/var ...</description><pubDate>Thu, 20 Jun 2024 07:46:00 GMT</pubDate></item><item><title>CatchAdmin LLike、RLike 导致查询为空问题修复</title><link>https://www.easybhu.cn/archives/238.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/238.html</guid><description>在模型调整$searchable的subject_code =&gt; LLike 最终查询不到结果 ![55970705926F1753EAA645ECE10A11DA.png][1] 在日志看到查询的sql把llike拼进值里面了 ![8FF ...</description><pubDate>Thu, 13 Jun 2024 01:51:16 GMT</pubDate></item><item><title>API 授权为啥要在 Authorization 标头里加个 Bearer？</title><link>https://www.easybhu.cn/archives/233.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/233.html</guid><description>设计 API 授权，或者调用第三方 API 时，经常会接触到： ``` Authorization : Bearer Tokenxxxxxx ``` 有没有疑惑为何不直接写成这样就得了： ``` Authorization : Tokenx ...</description><pubDate>Tue, 11 Jun 2024 09:18:55 GMT</pubDate></item><item><title>php sse模式发送Demo</title><link>https://www.easybhu.cn/archives/232.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/232.html</guid><description>这段PHP代码的功能是实现一个基于Server-Sent Events协议的简单定时器。 首先，通过header函数发送三个HTTP头信息： Content-Type: text/event-stream 用于告知浏览器以事件流的形式进行响 ...</description><pubDate>Thu, 18 Apr 2024 01:55:14 GMT</pubDate></item><item><title>Thinkphp框架在MacOS下创建runtime下一级目录成功但无法写入文件问题</title><link>https://www.easybhu.cn/archives/230.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/230.html</guid><description>Thinkphp框架在MacOS下创建runtime下一级目录成功但无法写入文件 问题代码： ```php $savePath = RUNTIME_PATH . &quot;transfer/&quot;; if(!file_exists($savePath) ...</description><pubDate>Tue, 27 Feb 2024 07:52:00 GMT</pubDate></item><item><title>uniapp微信小程序DOM元素v-show失效解决办法</title><link>https://www.easybhu.cn/archives/228.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/228.html</guid><description>uniapp微信小程序DOM元素v-show失效 问题代码 ```html {{ goPcInfo.info }} ``` ```less #app { .editArea { .go-pc { display: flex; backgro ...</description><pubDate>Thu, 22 Feb 2024 06:47:08 GMT</pubDate></item><item><title>Uniapp开发web移动端和微信小程序，v-for在web移动端正确输出，但在微信小程序下循环值为undefind</title><link>https://www.easybhu.cn/archives/227.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/227.html</guid><description>Uniapp开发web移动端和微信小程序，`v-for`在web移动端正确输出，但在微信小程序下循环值为undefind 问题代码片段： ```Vue 技能： {{ item.val }} 兴趣： {{ item.val }} ``` 问题 ...</description><pubDate>Mon, 19 Feb 2024 05:34:00 GMT</pubDate></item><item><title>Taro框架开发微信小程序编译后报错：routeDone with a webviewId 18 that is not the current page(env: macOS,mp,1.06.2401020; lib: 3.2.5)</title><link>https://www.easybhu.cn/archives/225.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/225.html</guid><description>Taro框架开发微信小程序编译后报错routeDone with a webviewId 18 that is not the current page(env: macOS,mp,1.06.2401020; lib: 3.2.5) ![W ...</description><pubDate>Mon, 12 Feb 2024 09:41:00 GMT</pubDate></item><item><title>mac苹果电脑m1 mbp 缺电自动关机后，日期时间无法同步；自动同步日期和时间错误，到一个固定的日期时间</title><link>https://www.easybhu.cn/archives/224.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/224.html</guid><description>表现为mac苹果电脑上，只要选取自动同步日期和时间，就会同步到一个很早之前的固定日期（现在是2023年1月，会同步到2021年的12月），很奇怪。 网上各种方法，下面的内容是唯一能起作用的。 在https://www.v2ex.com/t/ ...</description><pubDate>Tue, 21 Nov 2023 01:57:00 GMT</pubDate></item><item><title>Docker Jenkins持久化存储重启宿主机不丢失</title><link>https://www.easybhu.cn/archives/223.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/223.html</guid><description>最近想基于Docker部署Jenkins服务， 发现重启宿主机后已经配置的Jenkins数据全部丢失 官方文档启动说明比较隐晦，不利于小白理解 这里举例子解决此问题 #### 1.安装好Docker Jenkins镜像 这里不在赘述pull ...</description><pubDate>Sat, 22 Jul 2023 15:07:39 GMT</pubDate></item><item><title>小米路由器4C刷入OpenWrt（MacbookPro操作）</title><link>https://www.easybhu.cn/archives/220.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/220.html</guid><description>### 0.准备 #### a. 虚拟机安装好Windows，并配置与宿主机共享文件（笔者这里是用的是Vmware Fusion） ![1.png][1] #### b. type-c 转 RJ45 网卡 ![WechatIMG5.jpg][2] ...</description><pubDate>Sat, 22 Jul 2023 11:45:00 GMT</pubDate></item><item><title>laravel orm中使用 sum() 与 substr() 组合情况下，substr()内参数被替换解决办法</title><link>https://www.easybhu.cn/archives/208.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/208.html</guid><description>查询中涉及到sum()函数和substr函数组合 ``` sum( SUBSTR( xxx,3,1 ) = 5 OR SUBSTR( xxx,3,1 ) = 6 ) as sum, ``` 运行后结果不正确，打印sql发现substr内参数 ...</description><pubDate>Wed, 19 Jul 2023 08:18:00 GMT</pubDate></item><item><title>Contos7下Mysql5.7安装 及 关闭弱密码检测（mysql使用弱密码）</title><link>https://www.easybhu.cn/archives/207.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/207.html</guid><description>1.安装Mysql5.7 源 ``` wget https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm rpm -ivh mysql57-community- ...</description><pubDate>Wed, 05 Jul 2023 05:29:58 GMT</pubDate></item><item><title>js 对象截取前几对key-value</title><link>https://www.easybhu.cn/archives/206.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/206.html</guid><description>期望将如下对象截取前3对key-value ``` var obj = { apple: 124, banana: 23, melon: 19, pear: 100, orange: 68 }; ``` 函数 ``` intercept(o ...</description><pubDate>Sun, 25 Jun 2023 06:38:48 GMT</pubDate></item><item><title>js 对象依据value排序</title><link>https://www.easybhu.cn/archives/205.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/205.html</guid><description>希望将如下对象依据value进行排序，并且保持key与value对应 ``` let obj = {ATTACK: 698462, AV: 4174, FILTER: 7589767, IPS: 1106719, SCAN: 1667425 ...</description><pubDate>Sun, 25 Jun 2023 06:34:57 GMT</pubDate></item><item><title>Docker Mysql5.7 重新生成 ssl相关 pem证书</title><link>https://www.easybhu.cn/archives/204.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/204.html</guid><description>#### 进入容器 ``` docker exec -it xxxxxxxxx bash ``` #### 创建临时目录 ``` mkdir /var/lib/mysql/temp ``` #### 在data目录生成新的证书（共8个） ` ...</description><pubDate>Mon, 12 Jun 2023 06:24:57 GMT</pubDate></item><item><title>Node.js ssl 连接 Mysql5.7 （其它语言大致类似此流程）</title><link>https://www.easybhu.cn/archives/203.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/203.html</guid><description>#### Mysql5.7默认是开启ssl的 （检查是否正常开启） ``` show variables like &apos;%ssl%&apos;; ``` 得到如下结果，可看到`have_openssl`、`have_ssl`均为YES ![1.png] ...</description><pubDate>Fri, 09 Jun 2023 07:14:00 GMT</pubDate></item><item><title>Node.js 检测远程服务器指定端口是否畅通</title><link>https://www.easybhu.cn/archives/196.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/196.html</guid><description>安装依赖 ``` npm i iptoolbox ``` 项目中引入`iptoolbox`包， 例如希望检测服务器地址：`127.0.0.1`，端口：`9002` ``` import {IP, Network} from &quot;iptoolb ...</description><pubDate>Tue, 06 Jun 2023 05:45:00 GMT</pubDate></item><item><title>Koa2增加404状态拦截并显示自定义404页面</title><link>https://www.easybhu.cn/archives/195.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/195.html</guid><description>以笔者当前`package.json`为例 ``` &quot;@koa/router&quot;: &quot;^12.0.0&quot;, &quot;koa&quot;: &quot;^2.14.1&quot;, &quot;koa-bodyparser&quot;: &quot;^4.4.0&quot;, &quot;koa-session&quot;: &quot;^6.4.0 ...</description><pubDate>Thu, 20 Apr 2023 06:05:58 GMT</pubDate></item><item><title>Github访问无响应，手动调整host免梯子访问</title><link>https://www.easybhu.cn/archives/193.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/193.html</guid><description>共计两个步骤, 使用`ipaddress.com`测试节点来检测当前网络Github最佳目标IP ### 1.获取`github.com`域名解析IP 点击获取github.com域IP 找到如图位置，复制ip得到`140.82.113.3 ...</description><pubDate>Wed, 19 Apr 2023 05:15:00 GMT</pubDate></item><item><title>js获取本周7天所有日期并转换为H:i:s自动补0</title><link>https://www.easybhu.cn/archives/190.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/190.html</guid><description>``` datetimeFormat() { function paddingZero(number) { const length = String(number).length; return length === 1 ? &apos;0&apos;+nu ...</description><pubDate>Thu, 23 Feb 2023 06:01:06 GMT</pubDate></item><item><title>vue 实现千位数逗号分隔符方法</title><link>https://www.easybhu.cn/archives/189.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/189.html</guid><description>需求需要实现例如将 `23012` 显示为 `23,012` 1.创建转换方法`addThousand` ```vue methods: { addThousand: num =&gt; num.toLocaleString(), } ``` 2 ...</description><pubDate>Fri, 10 Feb 2023 05:58:54 GMT</pubDate></item><item><title>elementUI 定制按钮主题</title><link>https://www.easybhu.cn/archives/188.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/188.html</guid><description>### 1.引入全局样式文件 首先在vue入口文件全局引入一个样式文件`global.less`，这里以less文件举例（sass、css...都可） 注意**不要**在` `添加作用域限制指令`scoped` ```Vue export  ...</description><pubDate>Wed, 04 Jan 2023 02:24:00 GMT</pubDate></item><item><title>lighttpd 关闭目录访问，解决暴露目录Index of /xxx问题</title><link>https://www.easybhu.cn/archives/183.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/183.html</guid><description>在lighttpd.conf文件中将`dir-listing.activate`属性的enable值设置为disable ``` dir-listing.activate = &quot;disable&quot; ``` 然后`killall lighttp ...</description><pubDate>Wed, 14 Dec 2022 06:20:00 GMT</pubDate></item><item><title>echarts 图例 legend 取消点击事件 / 添加点击事件</title><link>https://www.easybhu.cn/archives/182.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/182.html</guid><description>一、legend 取消点击事件 ``` legend: { selectedMode:false,//取消图例上的点击事件 data:[&apos;浏览量&apos;,&apos;访问量&apos;] } ``` 二、legend 添加点击事件 图例组件用户切换图例开关会触发该事 ...</description><pubDate>Fri, 09 Dec 2022 02:56:13 GMT</pubDate></item><item><title>[VuePoem] Vue2升级到Vue3及elementUI升级到Plus常见报错及修复办法</title><link>https://www.easybhu.cn/archives/179.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/179.html</guid><description>本文如果帮到您，请给个评论支持下。谢谢！ ### Uncaught (in promise) TypeError: Failed to set an indexed property on &apos;CSSStyleDeclaration&apos;: In ...</description><pubDate>Tue, 08 Nov 2022 07:38:00 GMT</pubDate></item><item><title>Vite + Vue2.7 + elementUI2.15.10 ，el-table 无法显示、el-table不渲染、el-table不报错</title><link>https://www.easybhu.cn/archives/178.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/178.html</guid><description>问题描述：使用vite为构建工具搭建Vue2.7 + elementUI2.15.10， ` `组件空渲染问题。使用官方Demo示例也一样不显示。（百度有答案让切换elementUI版本也不行） 问题情况主要依赖：Vite + Vue2.7 ...</description><pubDate>Fri, 04 Nov 2022 07:05:00 GMT</pubDate></item><item><title>vue 路由切换前关闭api pending请求</title><link>https://www.easybhu.cn/archives/174.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/174.html</guid><description>现象： 最近访问前端页面发现一个问题，在回退页面的时候，点得很快，就会突然跳到一个其他页面，如：访问时候顺序是：A–&gt;B–&gt;C–D，回退的时候，本应该是：D–&gt;C–&gt;A，但是你不耐烦就点得很快，回退跳转实际是：D–&gt;C–&gt;A–&gt;C。 原因： ...</description><pubDate>Thu, 03 Nov 2022 01:27:00 GMT</pubDate></item><item><title>python中用flask写数据接口</title><link>https://www.easybhu.cn/archives/173.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/173.html</guid><description>### 1、flask 写接口 第一次写数据接口，采用 flask 框架，还挺简单。只需几行代码就能完成一个简单的接口，例如： ``` from flask import Flask,jsonify,request app = Flask( ...</description><pubDate>Thu, 27 Oct 2022 10:04:24 GMT</pubDate></item><item><title>Vue组件之间（兄弟、父子）监听vuex state变化</title><link>https://www.easybhu.cn/archives/172.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/172.html</guid><description>### 情景 两个组件，A和B。 B组件想通过`vuex`控制A组件方法实现刷新。 ### 准备 1.进入store设置state:`reloadLic: false` ``` export default { ... reloadLic: ...</description><pubDate>Fri, 23 Sep 2022 04:07:00 GMT</pubDate></item><item><title>Less中使用calc()函数编译后错误</title><link>https://www.easybhu.cn/archives/171.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/171.html</guid><description>在less中使用calc()计算元素宽度 ```less #lic-notice { width: calc(100% - 200px); height: auto; z-index: 999; } ``` 样式被编译后宽度错误显示`wid ...</description><pubDate>Thu, 22 Sep 2022 03:06:18 GMT</pubDate></item><item><title>记录一次 phpAPI的Mysql注入尝试</title><link>https://www.easybhu.cn/archives/170.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/170.html</guid><description>### 准备物料 - VuePoem项目 - API调试工具 - 可暴库SQL语句 ### 开始 1. 启动VuePoem项目，使API服务运行起来, 关闭代码层面防SQL注入相关代码 2. 以登录为目标准备注入用户表`poem_sys_a ...</description><pubDate>Wed, 21 Sep 2022 09:28:00 GMT</pubDate></item><item><title>Mysql查看sql执行记录</title><link>https://www.easybhu.cn/archives/169.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/169.html</guid><description>### 先开启general_log ```mysql set global general_log=&apos;ON&apos;; ``` ### 查看general_log_file path ```mysql show variables like &apos;gen ...</description><pubDate>Wed, 21 Sep 2022 08:46:48 GMT</pubDate></item><item><title>「vuePoem开源后台」虚拟机Centos7启动vuePoem开发模式</title><link>https://www.easybhu.cn/archives/168.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/168.html</guid><description>## 前言 为解决windows开发者能使用vuePoem自带CLI脚本以及开发即生产环境，特出此基于虚拟机开发教程。 本文章可供windows用户使用虚拟机参考以及linux用户参考 [官方文档](https://vuepoem.easy ...</description><pubDate>Fri, 02 Sep 2022 02:32:00 GMT</pubDate></item><item><title>Javascript new Date() safari Invalid Date 引发的思考</title><link>https://www.easybhu.cn/archives/167.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/167.html</guid><description>前言：笔者近期使用`new Date()`将日期格式转换时间对象在safari下报错Invalid Date引发的思考 项目中涉及将`2022-08-01 00:00:00`日期格式转换为CST时间（本文中CST实现显示为英文是因为笔者系统 ...</description><pubDate>Wed, 31 Aug 2022 02:17:00 GMT</pubDate></item><item><title>Vue3实现一个简单的路由</title><link>https://www.easybhu.cn/archives/166.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/166.html</guid><description>如果你只需要一个简单的页面路由，而不想为此引入一整个路由库，你可以通过动态组件的方式，监听浏览器 hashchange 事件或使用 History API 来更新当前组件。 下面是一个简单的例子： ``` import Home from  ...</description><pubDate>Wed, 24 Aug 2022 01:59:00 GMT</pubDate></item><item><title>Vue关闭控制台[Vue warn]</title><link>https://www.easybhu.cn/archives/165.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/165.html</guid><description>找到 xxx/src/main.js文件， new Vue()前面找个位置添加: ```javascript Vue.config.silent = true; ```</description><pubDate>Tue, 23 Aug 2022 03:45:53 GMT</pubDate></item><item><title>PHP单例模式</title><link>https://www.easybhu.cn/archives/164.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/164.html</guid><description>```php _db = pg_connect(...);//postgrsql } private function __clone() {}; //覆盖__clone()方法，禁止克隆 public static function ge ...</description><pubDate>Mon, 15 Aug 2022 02:57:12 GMT</pubDate></item><item><title>php 文件下载限速func封装</title><link>https://www.easybhu.cn/archives/163.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/163.html</guid><description>php 文件下载限速function封装， 例： ```php function file_download($file_path = NULL, $new_filename = NULL, $rate = 500) { if(!file_ ...</description><pubDate>Tue, 26 Jul 2022 03:43:00 GMT</pubDate></item><item><title> docker-compose up报错：ERROR: for xxx  Cannot create container for service xxx: Conflict. The container name &amp;quot;/xxx&amp;quot; is already in use by container &amp;quot;xxxxxxxxxx&amp;quot;</title><link>https://www.easybhu.cn/archives/162.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/162.html</guid><description>Docker报错：ERROR: for xxx Cannot create container for service xxx: Conflict. The container name &quot;/xxx&quot; is already in use b ...</description><pubDate>Wed, 06 Jul 2022 07:30:00 GMT</pubDate></item><item><title>docker-compose up报错：Failed to Setup IP tables: Unable to enable SKIP DNAT rule:  (iptables failed: iptables...</title><link>https://www.easybhu.cn/archives/161.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/161.html</guid><description>执行`docker-compose up`报错`ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule: (iptables failed: iptables -- ...</description><pubDate>Tue, 05 Jul 2022 09:25:00 GMT</pubDate></item><item><title>2022更新 Centos 安装 Docker</title><link>https://www.easybhu.cn/archives/160.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/160.html</guid><description>## 1. 基础环境准备 - Linux Server (以Centos为例) ## 2. 安装Docker ### 清理旧版本Docker ```shell sudo yum remove docker \ docker-client \ ...</description><pubDate>Tue, 05 Jul 2022 09:07:35 GMT</pubDate></item><item><title>linux ubuntu 卸载 php</title><link>https://www.easybhu.cn/archives/158.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/158.html</guid><description>一、删除php的相关包及配置 ``` sudo apt-get autoremove php7* ``` 二、删除关联 ``` sudo find /etc -name &quot;*php*&quot; |xargs rm -rf ``` 三、清除dept列 ...</description><pubDate>Sun, 19 Jun 2022 05:37:22 GMT</pubDate></item><item><title>树莓派4B安装docker</title><link>https://www.easybhu.cn/archives/157.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/157.html</guid><description>准备： 1. 树莓派已经安装系统 （以ubuntu为例） 2. 用ssh客户端连接树莓派 安装： 1.更新并升级 ``` apt update &amp;&amp; apt upgrade ``` 2.安装docker和compose ``` apt in ...</description><pubDate>Sun, 19 Jun 2022 03:20:00 GMT</pubDate></item><item><title>Docker国内镜像源的切换</title><link>https://www.easybhu.cn/archives/156.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/156.html</guid><description>Docker中国区官方镜像:https://registry.docker-cn.com 网易:http://hub-mirror.c.163.com 中国科技大学:https://docker.mirrors.ustc.edu.cn 阿里 ...</description><pubDate>Sun, 19 Jun 2022 03:08:00 GMT</pubDate></item><item><title>微信扫码登陆在chrome浏览器失败,浏览器禁止重定向</title><link>https://www.easybhu.cn/archives/155.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/155.html</guid><description>浏览器会提示：(新版本的浏览器会提示) Unsafe JavaScript attempt to initiate navigation for frame with URL ‘http://www.xxx.xxx/’ from frame ...</description><pubDate>Tue, 14 Jun 2022 08:26:00 GMT</pubDate></item><item><title>Nginx的upstream配置技巧</title><link>https://www.easybhu.cn/archives/153.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/153.html</guid><description>**1. 介绍** **1.1 介绍** Nginx是一个反向代理软件，大部分的网站都采用Nginx作为网站/平台的服务器软件。Nginx除了可以直接作为web服务器使用外，更多的情况是通过反向代理将请求转发给上游服务器。 配置上游服务器可 ...</description><pubDate>Fri, 06 May 2022 08:40:00 GMT</pubDate></item><item><title>安装Argon One Pi 4树莓派机箱驱动</title><link>https://www.easybhu.cn/archives/152.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/152.html</guid><description>```shell curl https://download.argon40.com/argon1.sh | bash ``` 安装结束之后，桌面会出现两个快捷方式，“configure”和“uninstall”，用来更改设置和删除驱动。  ...</description><pubDate>Sun, 01 May 2022 15:20:00 GMT</pubDate></item><item><title>Nodejs快速更换国内源</title><link>https://www.easybhu.cn/archives/151.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/151.html</guid><description>```shell npm config set registry https://registry.npm.taobao.org &amp;&amp; npm config get registry ```</description><pubDate>Sun, 10 Apr 2022 12:02:45 GMT</pubDate></item><item><title>「Force原创」树莓派系列 - 02 - Docker DNMP(LNMP)环境安装部署</title><link>https://www.easybhu.cn/archives/150.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/150.html</guid><description>**1.安装docker** ```shell curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh docker -v ``` **2.安装doc ...</description><pubDate>Sat, 09 Apr 2022 16:02:00 GMT</pubDate></item><item><title>「Force原创」树莓派系列 - 01 - 安装树莓派系统</title><link>https://www.easybhu.cn/archives/149.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/149.html</guid><description>最近想用闲置已久的树莓派搭建7*24Hour爬虫平台，索性出个树莓派系列博文做个记录。 本章将演示如何从官网下载树莓派镜像和刷入存储介质启动进入系统以及更换软件源。 **0.准备阶段** a: 笔者这里使用树莓派4B + 32GB U盘来组 ...</description><pubDate>Sat, 09 Apr 2022 12:16:00 GMT</pubDate></item><item><title>树莓派4B  The following signatures couldn&apos;t be verified because the public key is not available: NO_PUBKEY 9165938D90FDDD2E</title><link>https://www.easybhu.cn/archives/145.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/145.html</guid><description>报错 ``` root@raspberrypi:/home/pi# apt update &amp;&amp; apt upgrade Get:1 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian  ...</description><pubDate>Fri, 08 Apr 2022 15:27:00 GMT</pubDate></item><item><title>php7.4 安装ssh2扩展 （mac下编译安装）</title><link>https://www.easybhu.cn/archives/144.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/144.html</guid><description>1. pecl下载扩展压缩包 https://pecl.php.net/package/ssh2 查看合适版本的扩展，我这里php使用7.4所以直接下载最新的就可以 2. 解压并编译安装 ``` cd ~/desktop wget http ...</description><pubDate>Wed, 06 Apr 2022 03:21:03 GMT</pubDate></item><item><title>/node_modules/.bin/apidoc: Permission denied</title><link>https://www.easybhu.cn/archives/143.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/143.html</guid><description>运行`apidoc -i api/ -o doc/`报错 ``` sh: /path/node_modules/.bin/apidoc: Permission denied npm ERR! code ELIFECYCLE npm ERR! ...</description><pubDate>Thu, 24 Mar 2022 06:45:00 GMT</pubDate></item><item><title>树莓派更换软件源包含（stretch、buster、bullseye）</title><link>https://www.easybhu.cn/archives/142.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/142.html</guid><description>stretch（Debian 9） ``` # 编辑 `/etc/apt/sources.list` 文件，删除原文件所有内容，用以下内容取代： deb [arch=armhf] http://mirrors.tuna.tsinghua.e ...</description><pubDate>Tue, 22 Mar 2022 13:13:27 GMT</pubDate></item><item><title>树莓派开启SSH的N种方法</title><link>https://www.easybhu.cn/archives/141.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/141.html</guid><description>**问题：** 为什么我的树莓派无法使用远程连接电脑？ **解答：** 由于树莓派只有一个串口，当我们开发中需要占用这个串口或者我们希望进行远程开发（通过一个根网线或无线连接到树莓派）。SSH连接，首先需要确认的是： - 你的树莓派有没有连 ...</description><pubDate>Tue, 22 Mar 2022 12:42:36 GMT</pubDate></item><item><title>正则验证集合</title><link>https://www.easybhu.cn/archives/140.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/140.html</guid><description>Domain ``` /^(([0-9a-zA-Z]+)|([0-9a-zA-Z]+[_.0-9a-zA-Z-]*[0-9a-zA-Z]+))(([a-zA-Z0-9-]+[.])+([a-zA-Z]{2}|net|NET|com|COM| ...</description><pubDate>Mon, 21 Mar 2022 08:38:30 GMT</pubDate></item><item><title>ERROR 2002 (HY000): Can&apos;t connect to local MySQL server through socket &apos;/run</title><link>https://www.easybhu.cn/archives/139.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/139.html</guid><description>命令行连接mysql `mysql -uroot`报错ERROR 2002 (HY000): Can&apos;t connect to local MySQL server through socket &apos;/run 找到mysql目录，删除ib_l ...</description><pubDate>Mon, 21 Mar 2022 06:24:00 GMT</pubDate></item><item><title>Mysql limit offset rows 中的 offset 很大时效率提升、mysql分页加载效率提升</title><link>https://www.easybhu.cn/archives/138.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/138.html</guid><description>``` mysql&gt; select * from test where val=4 limit 300000,5; +---------+-----+--------+ | id | val | source | +---------+-- ...</description><pubDate>Fri, 18 Mar 2022 07:48:59 GMT</pubDate></item><item><title>Mysql 详细解析explain各个属性含义</title><link>https://www.easybhu.cn/archives/137.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/137.html</guid><description>![798595366-5af29905f0140_fix732.png][1] 各属性含义： id: 查询的序列号 select_type: 查询的类型，主要是区别普通查询和联合查询、子查询之类的复杂查询 1. SIMPLE：查询中不包含 ...</description><pubDate>Fri, 11 Mar 2022 07:10:00 GMT</pubDate></item><item><title>从其它服务器拷贝数据表文件发生错误解决办法 ERROR 1932 (42S02): Table &apos;xxx&apos; doesn&apos;t exist in engine</title><link>https://www.easybhu.cn/archives/134.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/134.html</guid><description>近期有个排查客户数据库任务但无法直接访问，被提供数据库源文件(其中syslog是客户的数据库)。 ![WX20220310-154952@2x.png][1] 将syslog下的 `db_table_20220301.frm`、`db_ta ...</description><pubDate>Thu, 10 Mar 2022 07:56:20 GMT</pubDate></item><item><title>vue在elementUI el-col元素上绑定@click事件无效解决办法</title><link>https://www.easybhu.cn/archives/132.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/132.html</guid><description>在el-col直接添加 `@click=&quot;themeHandleClose(item)&quot;`， 点击后无效没有反馈事件并没有执行 ``` 设置主题 @click.native=&quot;themeHandleClose(item)&quot; class=&quot;c ...</description><pubDate>Sat, 05 Mar 2022 09:57:00 GMT</pubDate></item><item><title>xxx can’t be opened because Apple cannot check it for malicious software.</title><link>https://www.easybhu.cn/archives/131.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/131.html</guid><description>**通过brew下载或者第三方下载安装软件后打开报错** ![1.png][1] terminal打开输入`sudo spctl --master-disable` 开启苹果隐私的隐藏anywhere选项 ![2.png][2] 此时弹出警 ...</description><pubDate>Wed, 02 Mar 2022 02:32:28 GMT</pubDate></item><item><title>vue中监听路由参数的变化</title><link>https://www.easybhu.cn/archives/127.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/127.html</guid><description>在vue项目中，假使我们在同一个路由下，只是改变路由后面的参数值，期望达到数据的更新。 ``` mounted: () =&gt;{ this.id = this.$route.query.id; this.getdetail() } ``` g ...</description><pubDate>Sat, 29 Jan 2022 09:07:52 GMT</pubDate></item><item><title>Mac OS没有 ll 命令代替方案</title><link>https://www.easybhu.cn/archives/126.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/126.html</guid><description>``` vim ~/.bash_profile ``` 在bash_profile中添加： ``` alias ll=&apos;ls -alF&apos; ``` 在bash_profile中添加： ``` source ~/.bash_profile `` ...</description><pubDate>Thu, 27 Jan 2022 08:30:18 GMT</pubDate></item><item><title>nvm常用命令</title><link>https://www.easybhu.cn/archives/125.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/125.html</guid><description>１．查看远程支持的node版本 ``` nvm ls-remote ``` ２．查看本地node版本 ``` nvm list ``` ３．版本切换 ``` nvm use 版本号 ``` 转载自：https://www.cnblogs.c ...</description><pubDate>Thu, 27 Jan 2022 01:31:59 GMT</pubDate></item><item><title>php获取当前时间戳（16位长度，微秒单位）</title><link>https://www.easybhu.cn/archives/124.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/124.html</guid><description>``` intval(microtime(true) * 1000 * 1000); ```</description><pubDate>Thu, 06 Jan 2022 02:13:38 GMT</pubDate></item><item><title>树莓派4B切换国内源（清华大学源）</title><link>https://www.easybhu.cn/archives/123.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/123.html</guid><description>修改/etc/apt/sources.list，去掉自带的源，添加如下源： ``` deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main contrib ...</description><pubDate>Fri, 31 Dec 2021 14:13:18 GMT</pubDate></item><item><title>Gokins尝鲜 - Gokins PHP项目部署初探（2）</title><link>https://www.easybhu.cn/archives/119.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/119.html</guid><description>### 创建流水线 填写您的流水线名称、流水线描述、git仓库地址（如果为私有仓库，可以在右侧输入账号及密码） ![QQ20211114-174233@2x.png][9] ### Sihan&apos;s Blog Yaml配置（仅供参考） ```  ...</description><pubDate>Sun, 14 Nov 2021 09:50:00 GMT</pubDate></item><item><title>Gokins尝鲜 - Gokins PHP项目部署初探（1）</title><link>https://www.easybhu.cn/archives/116.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/116.html</guid><description>Gokins一款由Go语言和Vue编写的款轻量级、能够持续集成和持续交付的工具 持续集成和持续交付 作为一个可扩展的自动化服务器，Gokins 可以用作简单的 CI 服务器，或者变成任何项目的持续交付中心 博主将在后续把自己博客接入Goki ...</description><pubDate>Sun, 14 Nov 2021 07:10:00 GMT</pubDate></item><item><title>Gokins尝鲜 - 本地基础安装及运行</title><link>https://www.easybhu.cn/archives/114.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/114.html</guid><description>### 环境准备 1. 您需要确保安装gokins服务器上拥有mysql5.7 2. 如果使用云服务器确保gokins默认端口8030入口方向开放 ### 下载Gokins 1. 服务器下载Gokins可执行程序并移动至usr bin ```  ...</description><pubDate>Sun, 07 Nov 2021 09:53:00 GMT</pubDate></item><item><title>Linux下的/bin、/sbin、/usr/bin、/usr/sbin目录的区别</title><link>https://www.easybhu.cn/archives/95.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/95.html</guid><description>在linux下我们经常用到的四个应用程序的目录是`/bin`、`/sbin`、`/usr/bin`、`/usr/sbin` 。而四者存放的文件一般如下： **bin目录:** bin为binary的简写主要放置一些 系统的必备执行档例如:c ...</description><pubDate>Tue, 26 Oct 2021 01:17:46 GMT</pubDate></item><item><title>树莓派各种系统默认账号密码合集</title><link>https://www.easybhu.cn/archives/94.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/94.html</guid><description>``` Raspberry Pi 默认用户是 pi 密码为 raspberry FreeBSD 默认的密码是 freebsd/freebsd 和 root/root。 CentOS 7 默认主机名：rpi2 默认用户名 root 密码 ce ...</description><pubDate>Mon, 25 Oct 2021 14:23:23 GMT</pubDate></item><item><title>webpack打包后fontawesome请求路径404问题解决</title><link>https://www.easybhu.cn/archives/93.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/93.html</guid><description>打包新webpack项目发布到web服务器上后发现fontawesome字体文件请求路径不对。 ![WX20211014-114047@2x.png][1] 请求成了令人迷惑的`http://test.xxx.cn/static/css/s ...</description><pubDate>Thu, 14 Oct 2021 03:48:00 GMT</pubDate></item><item><title>Vue使用Array.prototype.push.apply导致视图不刷新问题解决</title><link>https://www.easybhu.cn/archives/90.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/90.html</guid><description>vue移动端列表项目中使用`searchFormData`作为列表对象，追加数据使用`Array.prototype.push.apply`。 接口返回数据后视图不刷新，查阅资料后是因为vue数组更新检测包含一组观察数组的变异方法，所以它们 ...</description><pubDate>Fri, 08 Oct 2021 02:08:00 GMT</pubDate></item><item><title>PHP利用反射获取方法（函数）注释</title><link>https://www.easybhu.cn/archives/89.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/89.html</guid><description>## 问题描述 今天写后台菜单管理，需要用程序读取某个方法的注释描述。如下，想获取Desc后面的文字。 ```text /** * Func: func_comment * User: Force * Date: 2021/9/25 * T ...</description><pubDate>Sat, 25 Sep 2021 07:54:00 GMT</pubDate></item><item><title>vue实现平滑过渡返回顶部、滚动界限值隐藏元素</title><link>https://www.easybhu.cn/archives/83.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/83.html</guid><description>Dom部分 ``` 推荐 职位 投递 我的 ``` Js部分 ``` data() { return { tabShowFlag: true, backTopFlag: false, } }, created() { //滚动识别 this ...</description><pubDate>Thu, 16 Sep 2021 08:11:00 GMT</pubDate></item><item><title>解决两个span在同一个父元素下高度不一致</title><link>https://www.easybhu.cn/archives/82.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/82.html</guid><description>问题DOM如下，两个span在同一个a标签下，显示高度不一致： ``` {{s_item.name}} {{s_item.publishtime}} ``` 解决办法，给a标签设置flex布局， 两个span分别给flex值，如下 ```  ...</description><pubDate>Thu, 16 Sep 2021 05:57:13 GMT</pubDate></item><item><title>Vuex刷新后保持state</title><link>https://www.easybhu.cn/archives/81.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/81.html</guid><description>利用`sessionStorage`配合保存状态，刷新前`sessionStorage`赋值给state。 ``` export default { name: &quot;app&quot;, components: {}, created() { // 页 ...</description><pubDate>Thu, 09 Sep 2021 05:38:26 GMT</pubDate></item><item><title>javascript 二进制转字符串</title><link>https://www.easybhu.cn/archives/80.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/80.html</guid><description>``` function binaryAgent(str) { var splitStr = str.split(&quot; &quot;); var newVar = splitStr.map(function(val) { return String.f ...</description><pubDate>Fri, 13 Aug 2021 01:15:44 GMT</pubDate></item><item><title>PHP二进制与字符串之间的相互转换</title><link>https://www.easybhu.cn/archives/79.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/79.html</guid><description>``` &apos;; echo BinToStr(&quot;1110000 1101000 1110000 111001001011101010001100 111001101010110010100001 111001011011110010000000 ...</description><pubDate>Thu, 12 Aug 2021 10:10:29 GMT</pubDate></item><item><title>Vue 深度选择器/deep/报警告:/deep/ combinator is no longer supported in CSS dynamic profile.</title><link>https://www.easybhu.cn/archives/78.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/78.html</guid><description>vue开发中控制台警告： /deep/ combinator is no longer supported in CSS dynamic profile. 应该是/deep/ 在将来会被移除 解决方案： ``` .a &gt;&gt;&gt; .b { }  ...</description><pubDate>Thu, 12 Aug 2021 01:36:00 GMT</pubDate></item><item><title>PHP 计算二维数组某个值出现的次数</title><link>https://www.easybhu.cn/archives/77.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/77.html</guid><description>PHP 统计二维数组某个值有几个？ PHP 计算二维数组某个值出现的次数 ``` $list = [ [&apos;id&apos; =&gt; 1, &apos;userId&apos; =&gt; 5], [&apos;id&apos; =&gt; 2, &apos;userId&apos; =&gt; 5], [&apos;id&apos; =&gt; 3, &apos; ...</description><pubDate>Fri, 09 Jul 2021 06:09:26 GMT</pubDate></item><item><title>vue如何动态绑定多个class</title><link>https://www.easybhu.cn/archives/76.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/76.html</guid><description>给一个dom绑定多个class，而且是动态绑定，代码如下： ``` // classA 是固定不变的，classB与classC 是根据条件来判断是否加入 ``` 转载自：https://www.jianshu.com/p/e4248eb7 ...</description><pubDate>Tue, 22 Jun 2021 09:38:15 GMT</pubDate></item><item><title>vue 实现的四级密码强度检测功能示例</title><link>https://www.easybhu.cn/archives/75.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/75.html</guid><description>这篇文章主要介绍了JS实现的四级密码强度检测功能,具有实时检测输入密码强度的功能,涉及javascript针对字符串的正则判定相关操作技巧,需要的朋友可以参考下 Dom部分 ``` 密码 弱 中 强 很强 ``` Vue部分 ``` dat ...</description><pubDate>Mon, 21 Jun 2021 09:46:00 GMT</pubDate></item><item><title>vue监听滚动事件DEMO</title><link>https://www.easybhu.cn/archives/74.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/74.html</guid><description>vue中监听滚动事件，然后对其进行事件处理，一般有：1. 滚动到顶部吸附； 2. 根据滚动的位置激活对应的tab键（锚链接tab键） 这两种方式的处理都是可通过监听scroll来实现 ``` mounted(){ window.addEve ...</description><pubDate>Mon, 21 Jun 2021 02:56:18 GMT</pubDate></item><item><title>element-ui steps 加点击事件无效解决办法</title><link>https://www.easybhu.cn/archives/73.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/73.html</guid><description>添加@click 添加之后发现不好使 找了一番资料发现得这样写就可以了@click.native 这个native是什么作用呢？ 查了一番资料大概就是vue封装@click这些方法时阻止了原生的DOM事件，而native就是释放DOM原生事 ...</description><pubDate>Fri, 28 May 2021 08:24:24 GMT</pubDate></item><item><title>使用Nightwatch进行E2E测试中文教程</title><link>https://www.easybhu.cn/archives/72.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/72.html</guid><description>**E2E测试** E2E(end to end)测试是指端到端测试又叫功能测试，站在用户视角，使用各种功能、各种交互，是用户的真实使用场景的仿真。在产品高速迭代的现在，有个自动化测试，是重构、迭代的重要保障。对web前端来说，主要的测试就 ...</description><pubDate>Tue, 18 May 2021 09:55:10 GMT</pubDate></item><item><title>js控制浏览器全屏</title><link>https://www.easybhu.cn/archives/71.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/71.html</guid><description>**全屏显示** ``` var docElm = document.documentElement; //W3C if (docElm.requestFullscreen) { docElm.requestFullscreen(); }  ...</description><pubDate>Tue, 11 May 2021 07:05:25 GMT</pubDate></item><item><title>CI框架报错 idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated解决办法</title><link>https://www.easybhu.cn/archives/70.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/70.html</guid><description>PHP CI框架运行在PHP7.3 idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated 解决办法。 打开文件 `libraries/Email.php` 修改idn_to_ascii() ...</description><pubDate>Thu, 06 May 2021 01:52:00 GMT</pubDate></item><item><title>纯 CSS 实现绘制各种三角形（各种角度）</title><link>https://www.easybhu.cn/archives/69.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/69.html</guid><description>一、前言 三角形实现原理：宽度width为0；height为0；（1）有一条横竖边（上下左右）的设置为border-方向：长度 solid red，这个画的就是底部的直线。其他边使用border-方向：长度 solid transparen ...</description><pubDate>Wed, 21 Apr 2021 06:45:00 GMT</pubDate></item><item><title>vue form表单上传文件</title><link>https://www.easybhu.cn/archives/60.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/60.html</guid><description>&gt; 本文章向大家介绍vue form表单上传文件，主要包括vue &gt; form表单上传文件使用实例、应用技巧、基本知识点总结和需要注意事项，具有一定的参考价值，需要的朋友可以参考一下。 ``` ``` 单独上传文件： ``` ``` ``` ...</description><pubDate>Mon, 12 Apr 2021 03:36:19 GMT</pubDate></item><item><title>vue 中 选择元素 模拟点击事件</title><link>https://www.easybhu.cn/archives/59.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/59.html</guid><description>``` 放大图片 ``` ref=&quot;carImg&quot; 设置元素名称 后面可以选择 js中选择方式： this.$refs.carImg js 模拟点击： el.click() 在vue的@clike里： $refs.carImg.click( ...</description><pubDate>Mon, 12 Apr 2021 03:15:53 GMT</pubDate></item><item><title>js用window.open(url)下载时，替换下载时的文件名</title><link>https://www.easybhu.cn/archives/58.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/58.html</guid><description>``` const url = &apos;fileApi/AccountTemplate.xlsx&apos; const link = document.createElement(&apos;a&apos;) link.style.display = &apos;none&apos; link ...</description><pubDate>Mon, 12 Apr 2021 02:47:31 GMT</pubDate></item><item><title>项目经理和产品经理的关系是怎样的？</title><link>https://www.easybhu.cn/archives/56.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/56.html</guid><description>以互联网产品经理和项目经理为例来说说首先，从知识领域来说，项目经理要求技术背景，这是必须的，一般团队的项目经理由非常有项目经验的RD担当，他的职责在于将目标转化为可量化可实现的项目计划，偏重于执行层面。而产品经理的知识领域较泛，且不一定非要 ...</description><pubDate>Sun, 11 Apr 2021 10:58:00 GMT</pubDate></item><item><title>Vue 项目防止用户手动修改本地存储sessionStorage</title><link>https://www.easybhu.cn/archives/54.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/54.html</guid><description>最近考虑到项目安全，需要限制用户私自修改sessionStorage本地存储。 查阅资料后简单来说就是需要在main.js中添加代码如下 ``` //防止手动修改本地存储 window.addEventListener(&apos;storage&apos;, ...</description><pubDate>Fri, 09 Apr 2021 03:46:36 GMT</pubDate></item><item><title>Element UI 表格换页渲染闪烁问题解决</title><link>https://www.easybhu.cn/archives/53.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/53.html</guid><description>使用Element UI自带的分页组件异步请求API数据后发现翻页时候总会闪烁一下，特别影响体验。 问题代码参考如下： ``` handleCurrentChangeForum(page) { //清理翻页前数据 this.forum_in ...</description><pubDate>Thu, 08 Apr 2021 09:01:39 GMT</pubDate></item><item><title>vue element-ui 表格列元素添加链接</title><link>https://www.easybhu.cn/archives/51.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/51.html</guid><description>如果要给表格列添加链接，则需要使用自定义列模板（针对element）,通过 scoped slot 可以获取到 row, column, $index 和 store（table 内部的状态管理）的数据。关于自定义列模板，在https:// ...</description><pubDate>Wed, 07 Apr 2021 07:31:31 GMT</pubDate></item><item><title>vue框架如何在一个页面调用另一个同级页面的方法</title><link>https://www.easybhu.cn/archives/50.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/50.html</guid><description>**使用场景：** 页面分为header、home、footer三部分，需要在home中调用header中的方法，这两个没有相互引入 **官方给出方法：** ![1307134-20190123200438334-1843127582.pn ...</description><pubDate>Tue, 06 Apr 2021 10:07:53 GMT</pubDate></item><item><title>Nginx 反向代理Vue Dev Node.js WEB服务出现Invalid Host header解决办法</title><link>https://www.easybhu.cn/archives/48.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/48.html</guid><description>问题背景：现有服务器Nginx+PHP，需要在这个基础上增加Node.js反向代理。来实现部分业务采用不同技术实现。如下： ``` upstream nodejs { server 172.16.126.76:8081; } server  ...</description><pubDate>Fri, 02 Apr 2021 06:27:00 GMT</pubDate></item><item><title>解决删除PHP网站项目目录报错 rm: cannot remove ‘xxx/.user.ini’: Operation not permitted 问题</title><link>https://www.easybhu.cn/archives/47.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/47.html</guid><description>首先进入项目目录 ``` cd xxx ``` 然后执行 ``` chattr -i .user.ini ``` 最后再尝试删除 ``` cd ../ &amp;&amp; rm -rf xxx ```</description><pubDate>Tue, 23 Mar 2021 09:59:59 GMT</pubDate></item><item><title>PHP 7 新特性</title><link>https://www.easybhu.cn/archives/46.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/46.html</guid><description>标量类型声明 PHP 7 中的函数的形参类型声明可以是标量了。在 PHP 5 中只能是类名、接口、array 或者 callable (PHP 5.4，即可以是函数，包括匿名函数)，现在也可以使用 string、int、float和 boo ...</description><pubDate>Tue, 23 Mar 2021 07:22:52 GMT</pubDate></item><item><title>NavigationDuplicated: Avoided redundant navigation to current location: “/“</title><link>https://www.easybhu.cn/archives/45.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/45.html</guid><description>关于VUE项目中报NavigationDuplicated: Avoided redundant navigation to current location: &quot;/&quot; 的错 原因：是指路由重复。 虽然对项目无影响，但是看到有红的不舒服！  ...</description><pubDate>Mon, 22 Mar 2021 02:40:54 GMT</pubDate></item><item><title>CSS-Learning | 使用border-radius创建圆形和胶囊形状（长圆形）</title><link>https://www.easybhu.cn/archives/43.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/43.html</guid><description>**boder-radius属性** 使用border-radius属性来设置圆角半径时可以使用长度值，或者百分比值。 在给它指定百分比值时，x轴和y轴分别相对于元素的宽度和高度来计算实际值。 所以，我们可以把一个正方形的元素变成圆形，只要 ...</description><pubDate>Wed, 10 Mar 2021 08:26:00 GMT</pubDate></item><item><title>Make /deep/ behave like the descendant combinator &amp;quot; &amp;quot; in CSS live profile (in css file or inside of &amp;lt;style&amp;gt;) CSS    </title><link>https://www.easybhu.cn/archives/42.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/42.html</guid><description>Make /deep/ behave like the descendant combinator &quot; &quot; in CSS live profile; effectively no-op. See &quot;Intent to Remove&quot; thr ...</description><pubDate>Tue, 09 Mar 2021 10:20:16 GMT</pubDate></item><item><title>vue 子组件修改data或调用方法</title><link>https://www.easybhu.cn/archives/41.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/41.html</guid><description>``` ``` 父组件： ``` this.refs.xxx.子组件定义的方法() ``` 外部： ``` vm.$refs.xxx.子组件定义的方法() ``` 注意:子组件添加 ref 属性,父组件才可以通过 refs 获取. 转载自： ...</description><pubDate>Tue, 09 Mar 2021 10:07:23 GMT</pubDate></item><item><title>html中设置锚点定位的几种常见方法</title><link>https://www.easybhu.cn/archives/40.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/40.html</guid><description>在html中设置锚点定位我知道的有几种方法，在此和大家分享一下： 1、使用id定位： ``` 锚点1 11111111111 11111111111 11111111111 11111111111 11111111111 111111111 ...</description><pubDate>Tue, 09 Mar 2021 08:25:00 GMT</pubDate></item><item><title>js 页面平滑滚动到页面顶部</title><link>https://www.easybhu.cn/archives/39.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/39.html</guid><description>``` //回到顶部 const scrollToTop = () =&gt; { const fromTopDistance = document.documentElement.scrollTop || document.body.scrol ...</description><pubDate>Tue, 09 Mar 2021 05:56:21 GMT</pubDate></item><item><title> CSS3 background inear-gradient 几个特效背景留存</title><link>https://www.easybhu.cn/archives/34.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/34.html</guid><description>### 效果1 ![1.png][1] ``` background: linear-gradient( 90deg , #5461c8 12.5%, #c724b1 0, #c724b1 25%, #e4002b 0, #e4002b 37 ...</description><pubDate>Mon, 08 Mar 2021 09:26:00 GMT</pubDate></item><item><title>ElmentUI el-input__inner样式无法修改问题</title><link>https://www.easybhu.cn/archives/33.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/33.html</guid><description>在Vue中，style要求scoped，只修改本组件下的样式，使用&gt;&gt;&gt;和/deep/来选择子组件 记录一下自己在需要table中使用input，而不出现边框，显然是border: 0;就可以的 使用了各种 .el-input .el-in ...</description><pubDate>Mon, 08 Mar 2021 07:32:18 GMT</pubDate></item><item><title>MySQL从日期格式中截取年份</title><link>https://www.easybhu.cn/archives/32.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/32.html</guid><description>**假设有数据表：** ``` CREATE TABLE `order` ( `order_id` varchar(20) NOT NULL COMMENT &apos;订单号&apos;, `c_date` timestamp NOT NULL DEFAUL ...</description><pubDate>Tue, 02 Mar 2021 02:52:00 GMT</pubDate></item><item><title>vue页面之间相互传值的方法</title><link>https://www.easybhu.cn/archives/31.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/31.html</guid><description>1、使用query传值--地址栏可见 比如从a.vue跳转至b.vue，传name=‘jack’，代码如下: ``` this.$router.push({ path: &quot;/result&quot;, query: { name: &apos;jack&apos; }  ...</description><pubDate>Wed, 24 Feb 2021 09:45:00 GMT</pubDate></item><item><title>vue-resource emulateJSON的作用</title><link>https://www.easybhu.cn/archives/30.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/30.html</guid><description>如果Web服务器无法处理编码为application/json的请求，你可以启用emulateJSON选项。 启用该选项后，请求会以application/x-www-form-urlencoded作为MIME type，就像普通的HTML ...</description><pubDate>Wed, 24 Feb 2021 09:19:09 GMT</pubDate></item><item><title>Module build failed: Error: No PostCSS Config found</title><link>https://www.easybhu.cn/archives/29.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/29.html</guid><description>使用vue框架写pc页面时，我们经常会用到element-ui这个框架。 当我们吧把需要的东西都装在好运行项目的时候，有时会出现这样的错误， ![2018060920404578.png][1] 这是因为缺少了一个配置文件，postcss. ...</description><pubDate>Wed, 24 Feb 2021 01:33:00 GMT</pubDate></item><item><title>Element-ui tabs标签标题添加自定义图标</title><link>https://www.easybhu.cn/archives/26.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/26.html</guid><description>关键点：slot=&quot;label&quot; ``` {{ item.label }} ``` 总结：label标签都可按此方法添加自定义图标 转载自：https://blog.csdn.net/weixin_43824051/article/deta ...</description><pubDate>Tue, 23 Feb 2021 08:53:30 GMT</pubDate></item><item><title>关于vue-router嵌套路由，默认子路由方法设置</title><link>https://www.easybhu.cn/archives/25.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/25.html</guid><description>我们在做项目的时，常常会遇到使用Tab切换页面需求，要求设置第一个选项卡为默认选项。这时候我们就需要用到 vue-router 嵌套路由实现。设置默认项使用 redirect 属性即可。 ``` export default new Rou ...</description><pubDate>Mon, 22 Feb 2021 06:03:41 GMT</pubDate></item><item><title>Vue引用其它页面组件方法, Vue 一个组件引用另一个组件</title><link>https://www.easybhu.cn/archives/24.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/24.html</guid><description>**方法1:** ``` //1.先使用import导入你要在该组件中使用的子组件 import testComponent from &apos;./testComponent.vue&apos; export default { //2.然后,在compo ...</description><pubDate>Mon, 22 Feb 2021 01:57:00 GMT</pubDate></item><item><title>Mysql 基础、提升、技巧</title><link>https://www.easybhu.cn/archives/23.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/23.html</guid><description>一、基础 1、说明：创建数据库 CREATE DATABASE database-name 2、说明：删除数据库 drop database dbname3、说明：备份sql server --- 创建 备份数据的 device USE m ...</description><pubDate>Tue, 12 Jan 2021 06:47:48 GMT</pubDate></item><item><title>iframe高度自适应终极解决办法</title><link>https://www.easybhu.cn/archives/22.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/22.html</guid><description>``` function initIframeHeight(height){ var userAgent = navigator.userAgent; var iframe = parent.document.getElementById( ...</description><pubDate>Mon, 04 Jan 2021 14:30:00 GMT</pubDate></item><item><title>设置robots.txt允许所有的robot访问</title><link>https://www.easybhu.cn/archives/21.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/21.html</guid><description>robots.txt是一个纯文本文件，当网络蜘蛛来抓取网站的时候，首先就是访问这个网站的robot.txt文件。所以网站管理者都会在robots.txt文件中声明该网站中不想被robots访问的部分，或者只允许指定的搜索引擎收录指定的内容。 ...</description><pubDate>Mon, 04 Jan 2021 09:59:47 GMT</pubDate></item><item><title>mysql创建临时表</title><link>https://www.easybhu.cn/archives/20.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/20.html</guid><description>A、临时表再断开于mysql的连接后系统会自动删除临时表中的数据，但是这只限于用下面语句建立的表： 1)定义字段 CREATE TEMPORARY TABLE tmp_table ( name VARCHAR(10) NOT NULL, t ...</description><pubDate>Fri, 25 Dec 2020 05:12:00 GMT</pubDate></item><item><title>PHP与Javascript语法快速对照攻略</title><link>https://www.easybhu.cn/archives/19.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/19.html</guid><description>``` php的基本类型分别： 1.基本数据类型：整型、小数(float/double)、字符串、布尔类型 2.复合类型：数组、对象 3.特殊类型：Null，资源类型 JavaScript的基本类型： Undefined,Null,Bool ...</description><pubDate>Tue, 22 Dec 2020 05:29:07 GMT</pubDate></item><item><title>rm: cannot remove `.user.ini’: Operation not permitted ，强制删除 .user.ini解决办法</title><link>https://www.easybhu.cn/archives/18.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/18.html</guid><description>很简单，两行命令解决 ``` chattr -i .user.ini rm -rf .user.ini ```</description><pubDate>Mon, 21 Dec 2020 10:11:16 GMT</pubDate></item><item><title>Mac终端下主机名显示bogon问题</title><link>https://www.easybhu.cn/archives/16.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/16.html</guid><description>解决很简单 1. 终端输入`sudo scutil --set HostName 你的主机名` 2. 终端输入`hostname`查看结果 3. 关闭终端重新打开可看到效果 参考文章： https://blog.csdn.net/zhizu ...</description><pubDate>Wed, 16 Dec 2020 02:04:24 GMT</pubDate></item><item><title>Centos7 一键安装python3.7</title><link>https://www.easybhu.cn/archives/15.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/15.html</guid><description>来源： https://blog.csdn.net/big_data1/article/details/103496780 ``` yum -y install wget &amp;&amp; yum -y groupinstall &quot;Developmen ...</description><pubDate>Tue, 15 Dec 2020 00:53:00 GMT</pubDate></item><item><title>基于宝塔面板无法以root权限执行exec()问题</title><link>https://www.easybhu.cn/archives/14.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/14.html</guid><description>1. 修改要使用的php对应版本的php-fpm文件，我使用的是7.1所以修改文件位置`vim /www/server/php/71/etc/php-fpm.conf`，文件内找到`www`字眼修改为`root`，保存退出vim。 ![WX ...</description><pubDate>Tue, 15 Dec 2020 00:44:00 GMT</pubDate></item><item><title>Node+puppeteer学习笔记（六）--API问题解决--点击页面的alert、confirm、prompt三种JavaScript弹框</title><link>https://www.easybhu.cn/archives/9.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/9.html</guid><description>首先看一下官方的Demo和解释 --------------- ![1.png][1] ![2.png][2] 不知道小伙伴们有没有看懂这个例子呢？反正我看的时候是一脸懵逼，哈哈，难道是我太太太菜了！然而经过我的思考和理解，最后终于搞懂了原 ...</description><pubDate>Wed, 18 Nov 2020 07:45:00 GMT</pubDate></item><item><title>网页头部的声明应该是用 lang=”zh” 还是 lang=”zh-cn”？</title><link>https://www.easybhu.cn/archives/4.html</link><guid isPermaLink="true">https://www.easybhu.cn/archives/4.html</guid><description>Ple“zh”是中文，代表的是宏语言（Macrolanguage），单独使用表示“中文”整体，可以是方言、文言文、简体、繁体等单独一种，也可以是任意组合的混合内容。“zh-CN”理论上表示的是“中文 (中国大陆)”，因为中国大陆的官方语言是 ...</description><pubDate>Mon, 16 Nov 2020 12:22:00 GMT</pubDate></item></channel></rss>