@echo off D: cd D:// node server.js pause 临时demo调试时懒得每次都需要开启命令行输入命令启动服务,直接新建一个文本文档改成start.cmd,内容复制进去。保存,双击打开。