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







查看全文
  • 相关阅读:
    Java虚拟机及运行时数据区
    Math小记
    利用BitMap进行大数据排序去重
    Java直接内存与堆内存
    【分布式搜索引擎】Elasticsearch之安装Elasticsearch可视化平台Kibana
    【分布式搜索引擎】Elasticsearch之如何安装Elasticsearch
    【微信错误】{"errcode":"40013","errmsg":"invalid appid hint: [mackRA06203114]","success":false}
    【Java】理解ClassNotFoundException与NoClassDefFoundError的区别
    【Spring Boot】Spring Boot之使用AOP实现数据库多数据源自动切换
    【异常】The dependencies of some of the beans in the application context form a cycle
  • 原文地址:https://www.cnblogs.com/ldxsuanfa/p/10477366.html
  • Copyright © 2011-2022 走看看