简体   繁体   English

使文本文件可用于Web应用程序的最佳方法是什么?

[英]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.

相关问题 阻止用户从Web应用程序复制和粘贴文本的最佳方法是什么? - What's the best way of stopping users from copying and pasting text from a web app? 在jsTree中,使节点文本可单击的最佳方法是什么(用于选中复选框) - In jsTree, what's the best way to make the node text clickable (for checking the checkbox) 在本机ios应用程序中嵌入Web应用程序的最佳方法是什么? - What is the best way to embed a web application inside a native ios app? 在网页中模拟 DOS 或终端屏幕的最佳方法是什么? - What's the best way to simulate a DOS or Terminal screen in a web page? 服务器向Web客户端发送消息的最佳方式是什么? - What's the best way for the server to send messages to a web client? 使段落属性中的某些文本加粗的最佳方法是什么? - What is the best way to make certain text in a paragraph prop bold in react? 登录单页应用程序的最佳方法是什么 - What's the best way to log in Single Page Application 从服务器获取聊天应用程序消息的最佳方法是什么 - What's the best way to retrieve messages from the server for a chat application 使悬停菜单适用于移动设备的最佳实践方法是什么? - What's the best practice way to make a hover menu work for mobile? 制作双语 Static 简单 HTML 网站的最佳方法是什么? - What's the best way to make a Bilingual Static Simple HTML Website?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM