如何在javascript中上传更新的文件 [英] How to upload an updated file in javascript

查看:56
本文介绍了如何在javascript中上传更新的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



假设我有一个包含一些内容的记事本文件。我把它保存为test.js.(内容为Hello),我在另一个.js文件中使用了这个.js。稍后如果我将test.js文件中的内容更新为hi。它会显示test.js中的变化请回复

Hi,
Suppose i have a notepad file having some contents. i saved it as test.js.(Having th e content Hello) and i used this .js in another .js file. Later if i am updating the contents in test.js file as hi. will it show the changes in test.js pls reply

推荐答案



假设我有一个.js文件。


一个.txt文件包含在.js文件中。稍后,如果我在.txt文件中进行更改,它将自动更改。怎么样?任何代码.......请帮我快。非常紧急。
Hi,
Suppose i have one .js file.

one .txt file is included in the .js file. Later if i am making the changes in .txt file will it change automatically. How? any code.......Pls help me fast.Its very urgent.


请不要双重发表您的问题...阅读发布指南


亲切的问候

MOD
please don''t double post your question ... read the Posting Guidelines before posting.

kind regards
MOD


你是如何在JS文件中包含txt文件的?你能不能发布你到目前为止所做的事情,因为很难理解你的意思......而且可能看一下代码清除了一点吗?


亲切的问候

gits
How did you include a txt-file in a JS-file? could you please post what you have done so far, because its quite hard to understand what you mean ... and may be havin a look at the code clears that up a bit?

kind regards
gits


这篇关于如何在javascript中上传更新的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆