1、先准备好node.js环境,这里就不举例了,详细请看https://www.runoob.com/nodejs/nodejs-install-setup.html
3、方法一:直接显示
5、方法三:存在localStorage