layui表格内容溢出,溢出自动隐藏 1.layui表格内容溢出,如图2.在代码中加入<div style="width:500px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">{$aa['content']}</div>3.OK
linux磁盘已满_宝塔根目录已满 1.先查看内存使用情况df -h2.进入/dev/vdal的磁盘挂载的目录 /,查看各个文件占用大小cd /du -sh *3,进入占用比较大的文件夹,du -sh * 扫描文件,谨慎删除不需要且占用比较大的文件夹4.重启服务器,再次查看内存 df -h,OK...
Navicat远程连接宝塔面板MySQL 1.1连接MySQL出现问题1.2 root密码2.解决在装有MySQL的机器上(我使用的Linux) 登录MySQL mysql -u root -p密码执行use mysql;执行update user set host = '%' where user = 'root';这一句执行完可能会报错,不用管它。执行FLUSH PRIVILEGES;3.成功OK...
php 处理XML数据simplexml_load_string使用实例 代码如下<?php$data = <<<XML<?xml version="1.0" encoding="UTF-8"?><dict> <key>百度</key> <pos></pos> <acceptation>2132</acceptation> <sent> <orig>百度一下</orig> <trans>
php 查看接口运行时间 代码<?php$start_time = microtime(true);for ($i=0;$i<100000000;$i++){};$end_time = microtime(true);echo '循环执行时间为:'.($end_time-$start_time).' s';
使用curl或file_get_contents抓取网页中文乱码 出现的问题解决办法 在curl函数配置参数中加这条代码 curl_setopt($ch, CURLOPT_ENCODING, "gzip");或者 file_get_contents函数加 file_get_contents("compress.zlib://".$url);
file_get_contents()或file(): SSL operation failed with code 1 问题:解决:file_get_contents()或file()加入如下代码$stream_opts = [ "ssl" => [ "verify_peer"=>false, "verify_peer_name"=>false, ]];$file = file('https://baidu.com',false,stream_context_create($stream_opts));...
一些常用的 Emoji 符号(可直接复制) 表情类???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ☺️ ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? ☹️ ???? ???? ?
jQuery时间戳转年月日 //第一种function getLocalTime(tt) {return new Date(parseInt(tt) * 1000).toLocaleString().replace(/:\d{1,2}$/,' ');}alert(getLocalTime(1598554575));//结果2020/8/28 上午2:56//第二种function getLocalTime(tt) {return new Date(parseInt(tt) * 1000).toLocaleStri..
table导出Excel-表格的内容,格式,颜色不变 效果图原代码<!DOCTYPE html><html><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Language" content="zh-cn"> <title>Title</title> <style>.
Linux中批量压缩文件夹 把多个文件夹压缩在同一个压缩包tar -zcvf test.tar.gz test1 test2 或者:for i in `find ./* -type d`;do zip $i.zip ./$i/*;done'find ./* -type d' 表示查找所有文件夹,-type d就表示指定文件夹类型,这种方法是把每个文件夹单独压缩,一个文件夹对应一个压缩包...
Linux解压tar.gz文件时提示gzip: stdin: not in gzip format tar: Child returned status 1 tar: 在Linux系统下解压缩tar.gz文件命令文件的时候,提示gzip: stdin: not in gzip format tar: Child returned status 1 tar在解压tar.gz文件的时候报错,如图原因:是这个压缩包没有用gzip格式压缩解决方法一:不用加z指令解决方法二: 1:把下载下来的文件重命名: test.tar 2:再执行解压命令: tar -zxvf test.tarOK...
tp5 a标签href跳转 问题:在a标签中直接加入网站<a href="www.kxxxxx.com"></a>结果如图原因:href跳转到一个相对路径,而不是绝对地址解决:添加http:// <a href="http://www.kxxxxx.com"></a>结果如图:OK