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://lszwz.com/article/gjsegg.html

售后响应及时

7×24小时客服热线

数据备份

更安全、更高效、更稳定

价格公道精准

项目经理精准报价不弄虚作假

合作无风险

重合同讲信誉,无效全额退款