Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
252 views
in Technique[技术] by (71.8m points)

javascript - 如何使用JavaScript在本地运行时之外保存变量(How can I save a variable outside of run-time locally using JavaScript [closed])

I am currently making a discord bot using node js, and part of what I am doing involves storing an incremented number that won't reset each time the bot is taken down.

(我目前正在使用node js制作一个不和谐的bot,而我正在做的部分工作包括存储一个递增的数字,该数字在每次关闭bot时都不会重置。)

I assume it would be down through reading/writing to a text file, but I'm not sure how to do this.

(我认为通过读取/写入文本文件会导致故障,但是我不确定如何执行此操作。)

Any suggestions on how to do this?

(有关如何执行此操作的任何建议?)

  ask by boom translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...