会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
明明一颗大白菜
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
4
5
6
7
8
9
10
11
12
···
37
下一页
2020年8月31日
php判断是否为移动端
摘要: public function isMobile() { // 如果有HTTP_X_WAP_PROFILE则一定是移动设备 if (isset ($_SERVER['HTTP_X_WAP_PROFILE'])) { return TRUE; } // 如果via信息含有wap则一定是移动设备,部分服
阅读全文
posted @ 2020-08-31 12:29 明明一颗大白菜
阅读(757)
评论(0)
推荐(0)
2020年8月13日
electron程序挂载在后台的时候,怎样点击显示
摘要: mainWindow.setAlwaysOnTop(true); setTimeout(() => { mainWindow.setAlwaysOnTop(false); }, 100);
阅读全文
posted @ 2020-08-13 09:53 明明一颗大白菜
阅读(379)
评论(0)
推荐(0)
2020年7月17日
linux下生成ssh密钥并获取密钥
摘要: 生成密钥 ssh-keygen -t rsa -f ~/.ssh/id_rsa -N '密码' -t指定密钥产生算法 -f指定生成文件,登陆是使用ssh命令进行的,而他的配置文件默认的私钥为家目录下.ssh/id_rsa -N对私钥加密以防止私钥泄露后他人乱用,但这也使得以后每次登陆必须输入-N指定
阅读全文
posted @ 2020-07-17 12:12 明明一颗大白菜
阅读(2493)
评论(0)
推荐(1)
2020年7月10日
configure: error: Cannot find php-config. Please use --with-php-config=PATH 错误的解决方案
摘要: configure: error: Cannot find PHP-config. Please use --with-php-config=PATH 一般出现这个错误说明你执行 ./configure 时 --with-php-config 这个参数配置路径错误导致的。 修改为: ./config
阅读全文
posted @ 2020-07-10 23:01 明明一颗大白菜
阅读(961)
评论(0)
推荐(0)
2020年7月4日
php call_user_func_array()用法
摘要: $func = 0;$funList = ['one', 'two']; call_user_func_array(array($this,$funList[$func]),array('A','B'));
阅读全文
posted @ 2020-07-04 16:43 明明一颗大白菜
阅读(946)
评论(0)
推荐(0)
2020年6月10日
linux查询某个文件夹下的行数
摘要: find demo/ -name '*'|wc -l
阅读全文
posted @ 2020-06-10 13:40 明明一颗大白菜
阅读(1215)
评论(0)
推荐(0)
2020年5月29日
mysql中查询字段为汉字的集合
摘要: SELECT * FROM table WHERE length(column)!=char_length(column);
阅读全文
posted @ 2020-05-29 11:41 明明一颗大白菜
阅读(1107)
评论(0)
推荐(0)
2020年5月21日
laravel-admin取消https
摘要: 在config文件里面,找到admin.php, 添加一行代码即可: 'https' => false
阅读全文
posted @ 2020-05-21 10:12 明明一颗大白菜
阅读(1286)
评论(0)
推荐(0)
2020年4月22日
centos7编译安装php 遇到的问题
摘要: centos7 编辑安装php遇到的问题: ./configure 配置遇到的No package 'libxml-2.0' found缺失libxml2.0 库,解决方法: yum -y install libxml2 yum -y install libxml2-devel ./configur
阅读全文
posted @ 2020-04-22 07:18 明明一颗大白菜
阅读(2703)
评论(0)
推荐(0)
2020年3月17日
laravel 向公共模板文件传值
摘要: 在 App\Providers\AppServiceProvider 文件中,boot方法中添加 view()->composer( 'manage-public', //模板名 'App\Http\Controllers\Manage\HomeController@getCallPolice' /
阅读全文
posted @ 2020-03-17 15:37 明明一颗大白菜
阅读(916)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
37
下一页
公告
<-- -->