小编Tia*_*kui的帖子

如何在命令行中的nodejs中提问

在红宝石中,我们可以这样做

print "How old are you? "
age = gets.chomp()
print "How tall are you? "
height = gets.chomp()
print "How much do you weigh? "
weight = gets.chomp()

puts "So, you're #{age} years old, #{height} tall and #{weight} heavy."
Run Code Online (Sandbox Code Playgroud)

它会喜欢这个

在此输入图像描述

但是如何在nodejs中做到这一点?

javascript command-line-interface node.js

0
推荐指数
1
解决办法
3717
查看次数