RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
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命令行交互模式
网页URL:http://scpingwu.com/article/gjsegg.html