robots.txt 禁止收录协议的写法
User-agent: * Disallow: / 或者 User-agent: * Disallow: /admin/
2023-06-29 08:57
127 
php file_get_contents伪造user_agent
2023-06-29 08:57
141 
JS中的JSON.Stringify 方法详解
JSON.stringify() 方法是将一个JavaScript值(对象或者数组)转换为一个 JSON字符串。 它的语法如下: JSON.stringify(value[, replacer[, space
2023-06-29 08:57
101 
JS获取四位年份和2位年份
// 获取四位年份 let year = new Date().getFullYear(); console.log(year); // 获取2位年份 let year2 = year.toString().s
2023-06-28 10:03
112 
Linux如何查看命令历史记录?
使用history命令可以查看当前会话的命令历史记录,格式为: history [option] [arg] 可选参数如下: -c 清除历史记录 -r 从历史文件中读取记录 -w 将历史记录写入历史文件 -d
2023-06-28 10:03
128 
HTTP Content-type 对照表
| Content-Type | 描述 | | ------------ | ---- | | application/json | 标准的JSON数据格式 | | text/html | HTML格式的文本 |
2023-06-28 09:59
118 
数组函数 arsort 的作用是什么?语句 error_reporting(2047)的作用是什么?
arsort() 函数对关联数组按照键值从大到小排序。 error_reporting(2047)设置错误报告级别,用于禁用所有 PHP 错误和警告报告,除了 E_NOTICE 和 E_USER_NOTICE
2023-06-28 09:59
157 
CSS实现内容超过长度后以省略号显示
实现方法: 1.使用CSS的`text-overflow`属性: ```css div { width:100px; overflow:hidden; text-overflow:ellip
2023-06-28 09:59
153 
返回顶部 留言