zoukankan      html  css  js  c++  java
  • Node.js的helloworld 程序

    用文本编辑器,如npp,键入例如以下代码,存储成hello.js

    console.log('hello')
    console.log('hello %s->%d','jeapedu', 1941847311)

    console.log('hello')
    console.log('hello %s->%d','jeapedu', 1941847311)
    node hello.js
    C:
    odeS>node hello.js
    hello
    hello jeapedu->1941847311
    

    cmd进入dos,切入hello.js所在文件夹,执行node.js程序

    node hello.js

    执行结果例如以下所看到的:

    C:
    odeS>node hello.js
    hello
    hello jeapedu->1941847311







查看全文
  • 相关阅读:
    centos和ubuntu配置路由的三种方式
    程序包编译安装
    逻辑卷磁盘管理和dd命令
    linux磁盘管理
    CDOJ 1269 ZhangYu Speech 数组处理
    poj 2236 Wireless Network 并查集
    poj 1182 食物链 并查集
    POJ 2109 Power of Cryptography 数学题 double和float精度和范围
    CDOJ 1264 人民币的构造 区间问题+数论
    CDOJ 1263 The Desire of Asuna 贪心
  • 原文地址:https://www.cnblogs.com/ldxsuanfa/p/10477366.html
  • Copyright © 2011-2022 走看看