重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

nodejs、php命令行交互模式

一、NODE JS:

  1. 代码:
    test.js
    var readline = require('readline');
    var rl = readline.createInterface({
    input: process.stdin,
    output: process.stdout
    });
    rl.question("what is your name?", function(result) {
    console.log(result)
    rl.close();
    });
  2. 测试:
    nodejs、php命令行交互模式

    二、PHP:

  3. 代码:
    test.php
  4. 测试:
    nodejs、php命令行交互模式

文章标题:nodejs、php命令行交互模式
标题网址:http://cqcxhl.com/article/gjsegg.html
在线咨询
服务热线
服务热线:028-86922220
TOP