限时免费试用:欢迎注册 api.bigmodel.org ,快速体验大模型 API 接入服务。
当前位置:标签 / ss

标签:ss

禁止右键的js代码

document.oncontextmenu = function(){ return false; } document.onkeydown = function(){ if (event.ctrlKey && window.event.keyCode==67){ return false; } } document.body.oncopy = func

TP5错误 | A non well formed numeric value encountered

数据表字段是create_time timestamp 默认:CURRENT_TIMESTAMP 使用时间会出现以下错误: A non well formed numeric value encountered 这是因为tp5框架会自动转换时间 解决方案如下: class powerModel extends Model { protected $pk =

jq学习笔记(一)基础

$(function(){ alert($) //返回jq对象 alert($()) //返回jq对象 alert($('#box')) //返回jq对象 alert($('#box').css('color','red')) //返回jq对象 }); 加载模式 $(document).ready(function(){ }); 简写形式: $(funct

shell脚本编程学习笔记(三)权限分配

文件或目录(普通文件) ------chmod scl 用户对某个程序或某个应用脚本-------sudo chmod 不能实现权限细化问题 1.数字权限分配 chmod 755 file r 4 w 2 x 1 2.字母权限分配 chmod u+x file chmod o-w file chmod g+w file chmod g+w,g+x file

shell脚本编程学习笔记(二)文件权限/用户管理

查看文章权限 ls -l file ll Linux权限 r 可读 w 可写 x 可执行 Linux用户 所有者(u) 所属组(g) 其他用户(o) 所有用户(all) drwxr-xr-x. 3 root root 4096 Feb 7 12:38 mnt 第一个元素: d 文件夹 - 文件 r可读 w可写 x可执行 -无权限 root用户对mnt具有rw

标量?

布尔、整数、浮点数、字符串型的数据是属于标量的。

类库 | 字符串截取,支持中文和其他编码

工作中使用的,觉得挺好用的,分享给大家 /** * 字符串截取,支持中文和其他编码 * @static * @access public * @param string $str 需要转换的字符串 * @param string $start 开始位置 * @param string $length 截取长度 * @param string $charset

PDO实现数据库的增删改查

PDO实现数据库的增删改查 //链接数据库 $pdo = new PDO('mysql:host=localhost;dbname=test','root','root'); //增 $res = $pdo->exec("insert into user(name) values('测试1')"); if($res){ echo '添加成功数据ID为:'.$

地址栏中文被解析为十六进制,如何转换

地址栏中文被解析为十六进制,如何转换回来 urldecode($str) 十六进制转换为中文 $str = '%E9%BB%91'; $a = urldecode($str); var_dump($a); //string(3) "黑" 中文转换为十六进制 $b = urlencode('星期二'); var_dump($b); //%E6%98%9F%E6