[英]What's the best way to make a text file available to a web application?
I'm currently working on a JavaScript Hangman game. 我目前正在开发JavaScript Hangman游戏。 I'm not sure how to go about making the text file containing the possible words available to the application so that everyone who uses the app starts with the same word bank. 我不确定如何使包含可能的单词的文本文件可用于该应用程序,以便使用该应用程序的每个人都以相同的单词库开头。 How is this typically done? 通常如何完成?
您可以将文本文件与Project文件一起保存,只需将此行添加到代码中即可。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.