ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    node 执行可执行文件

    Dec 1, 20217 min read
    var exec = require('child_process').execFile;
     
    var fun =function(){
       console.log("fun() start");
       exec('HelloJithin.exe', function(err, data) {  
            console.log(err)
            console.log(data.toString());                       
        });  
    }
    fun();
    

    相关文章

    requestAnimationFrame 的使用详解

    requestAnimationFrame(rAF)是一个优化动画性能和减少电池消耗的API,通过在下一次浏览器渲染前调用回调函数来实现动画的流畅更新。

    Form-create 全局校验api

    Form-create 全局校验api用于在添加操作前验证表单,并在验证通过后打开抽屉。

    如何手写一个高效的Base64解码方法?

    本文介绍了如何使用Python编写一个高效的Base64解码函数,并提供了手动编写解码方法的详细步骤。

    CentOS 查看系统32还是64位

    要检查CentOS系统是32位还是64位,可通过终端输入`uname -m`命令,返回`x86_64`表示64位,`i686`表示32位,或使用`arch`命令(适用于CentOS 7及以上版本)。

    解决 Failed loading plugin osmsplugin No module named 'librepo'

    解决 "Failed loading plugin 'osmsplugin': No module named 'librepo'" 错误的方法是安装 `python3-librepo`,并建议迁移到 CentOS Stream 8 或选择其他替代发行版以解决更新问题。