在JS中编辑服务器端文件 [英] Edit serverside files in JS

查看:368
本文介绍了在JS中编辑服务器端文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一些脚本供个人使用.现在,我倾向于将CD收藏夹列表保存在具有一些时尚外观的html文件中,但是我厌倦了用手工"编辑列表,这意味着我不想在每次添加新CD时都编辑代码.因此,有没有一种方法可以使用JS或JQuery,以便可以从本地文件添加/读取(此脚本不是远程的,它是本地的(尽管我可能会尝试将其远程托管).

i am making some script for some personal use. Now i tend to keep my CD collection list in a html file which has some sleek design, but i am tired of editing the list by "hand" and that means that i don't want to edit the code everytime i add new CD. So is there a way that i can use JS or JQuery so i could add/read from a local file(this script is not remote it is local(although i might try to host it remote).

除了HTML,CSS和JS/JQuery,我不想使用任何其他语言.

I don't want to use any other language than HTML, CSS and JS/JQuery.

是否可以添加一个链接,当我单击计算机上的某些应用程序时,该链接会启动.

Is it possible to add a link that when i click some application on my computer would launch.

推荐答案

如果只想使用HTML和javascript,则不行.您将需要某种服务器端脚本才能写入文件.

Not if you only want to use HTML and javascript. You will need a server side script of some kind to write to a file.

这些评论让我开始思考,我知道这并不是您真正要问的,但是您可以使用 node.js

The comments got me thinking, I know this is not really what you were asking but you could play around with server side javascript with node.js

这篇关于在JS中编辑服务器端文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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