ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    JS 页面刷新的console命令

    Nov 24, 202213 min read
    timeout=prompt("Set timeout (Second):");
    count=0
    current=location.href;
    if(timeout>0)
    setTimeout('reload()',1000*timeout);
    else
    location.replace(current);
    function reload(){
    setTimeout('reload()',1000*timeout);
    count++;
    console.log('每('+timeout+')秒自动刷新,刷新次数:'+count);
    fr4me='<frameset cols=\'*\'>\n<frame src=\''+current+'\'/>';
    fr4me+='</frameset>';
    with(document){write(fr4me);void(close())};
    }
    

    相关文章

    常量速率因子(Constant Rate Factor,CRF)

    常量速率因子(CRF)是一种视频编码参数,用于平衡视频压缩质量和文件大小,其值的选择取决于应用需求和编码器特性。

    Windows Server 多网卡链路聚合

    Windows Server通过“网络适配器聚合”功能实现多网卡链路聚合,提升网络性能和可用性。

    哈希表的原理是什么?

    哈希表通过哈希函数将键映射到数组位置,实现快速查找、插入和删除操作,广泛应用于编程语言中。

    Flutter now support iOS Wireless Debugging !

    Flutter may now support iOS Wireless Debugging, allowing developers to use Flutter DevTools for wireless connection and faster, more convenient app testing on physical devices without cables.

    用JavaScript编写一个实用的文件批量上传组件,助力您的文件管理能力!

    使用JavaScript和HTML5的File API及FormData实现了一个批量文件上传组件,通过异步请求将文件数据发送到服务器。