人五人六博客网
导航
  • 首页
  • thinkPHP
  • 数据库
  • Linux
  • PHP
  • 前端
  • 杂七杂八
  • 每日简报
搜索
js中对象中的键如果是大写,怎么才能使用小写取到呢?例如:var a = {A:'张三',B:'李四'},要怎么使用a.a就能取到张三
前端
js中对象中的键如果是大写,怎么才能使用小写取到呢?例如:var a = {A:'张三',B:'李四'},要怎么使用a.a就能取到张三
在JavaScript中,对象的属性名是区分大小写的。这意味着当你创建一个对象时,你定义的属性名的大小写将决定如何访问该属性。在你的例子中,var a = {A:'张三',B:'李四'},你只能使用大写的'A'和'B'来访问这些属性。 如果你不能更改原始对象的...
  • 2023/12/26
  • 1409阅读
tp6 动态链接数据库问题
thinkPHP
tp6 动态链接数据库问题
  • 2023/10/14
  • 1261阅读
php 将PDF转为图片文件
PHP
php 将PDF转为图片文件
  • 2023/7/14
  • 1329阅读
03日26日,星期四,在这里每天60秒读懂世界!
每日简报
03日26日,星期四,在这里每天60秒读懂世界!
  • 2026/3/26
  • 3阅读
  • Vue项目新打包文件放在服务器后,客户端自动更新问题
    • 2023/6/10
    • 前端
    Vue项目新打包文件放在服务器后,客户端自动更新问题
    每次测试构建或者打包更新版本发到服务器上,导致偶尔会出现不能及时更新到最新代码的问题。 一、在vue.config.js中配置output,打包后的文件会带时间戳 const Timestamp = new Date().getTime(); module.e...
    • 770阅读
    • 0评论
  • php遍历文件夹下所有文件
    • 2023/6/8
    • PHP
    php遍历文件夹下所有文件
    /** * 获取文件夹下的所有文件 * @param $dirPath 指定目录 * @return string */ function listDirFiles($dirPath) { if($dir = opendir($dirPath...
    • 1160阅读
    • 0评论
  • vue中 使用md5加密
    • 2023/6/3
    • 前端
    vue中 使用md5加密
    vue中 使用md5加密
    • 561阅读
    • 0评论
  • PHP判断当前协议是否为HTTPS
    • 2023/6/2
    • PHP
    PHP判断当前协议是否为HTTPS
    /** * PHP判断当前协议是否为HTTPS */ function is_https() { if ( !empty($_SERVER['HTTPS']) && strtolower($_...
    • 1240阅读
    • 0评论
  • JS判断当前是http还是https
    • 2023/6/2
    • 前端
    JS判断当前是http还是https
    JavaScript 的document对象中有一个location的子对象,其包括是属性如下:document.location.host //表示当前域名 + 端口号document.location.hostname //表示域名document.loc...
    • 678阅读
    • 0评论
  • tp5.1 Workerman 配置websocket支持wss
    • 2023/6/2
    • thinkPHP
    tp5.1 Workerman 配置websocket支持wss
    protected $socket = 'websocket://0.0.0.0:2346'; //监听协议、地址、和端口 protected $context = [ 'ssl' => [ 'lo...
    • 960阅读
    • 0评论
    • 2023/5/31
    • SQL
    mysql 将数据表字段值按指定符号分隔成多个字段
    示例: user表tag字段值类似:男生|90后|靓仔 //sql //SUBSTRING_INDEX(字段名,'分隔符',长度) select id,name,sex,SUBSTRING_INDEX(tag,'|',1) tag1,SUBSTRING_I...
    • 898阅读
    • 0评论
    • 2023/5/30
    • 杂七杂八
    windows服务器 查看端口是否开放
    一、打开cmd命令行窗口(win+r ->输入cmd ->回车) 二、检测格式为telnet IP 端口号,例如输入命令 telnet 172.16.10.79 3389 如图则表示没有开放端口  如果提示不是内部或是外部命令,也不是可...
    • 944阅读
    • 0评论
« 1 ... 4 5 6 7 8 9 10 ... 24 »
边栏
热门文章
  • composer报错:A temporary file could not be opened to write the process output:  fopen(C:\Users\ADMINI~1\AppData\Local\Temp\2\sf_proc_00.out.lock): failed to open stream: No such file or directory
    1
    composer报错:A temporary file could not be opened to write the process output: fopen(C:\Users\ADMINI~1\AppData\Local\Temp\2\sf_proc_00.out.lock): failed to open stream: No such file or directory
    • 2022/2/23
    • 28371阅读
  • TP5执行插入/更新语句报The active result for the query contains no fields.
    2
    TP5执行插入/更新语句报The active result for the query contains no fields.
    • 2022/10/26
    • 14173阅读
  • Apktool回编译问题:libpng error: Not a PNG file
    3
    Apktool回编译问题:libpng error: Not a PNG file
    • 2022/5/31
    • 6564阅读
  • elementUI 中el-table 的 formatter 和 scope template 不能同时存在问题解决办法
    4
    elementUI 中el-table 的 formatter 和 scope template 不能同时存在问题解决办法
    • 2021/10/27
    • 4391阅读
  • ThinkPHP 获取最后一条sql语句
    5
    ThinkPHP 获取最后一条sql语句
    • 2021/9/30
    • 4187阅读
最新评论
    标签
    • 60s 89
    • 每日简报 80
    • windows 2
    • 文字转语音 1
    • deepseek 1
    • contextmenujs 1
    • tp6 1
    • Telnet 1
    • 分词 1
    • sqlserveer 0
    粤ICP备19127209号-1 本站由 Emlog 驱动
    sitemap