[英]Read properties file from local machine using javascript/jquery/angular js/angular
We have a properties file in local machine (for example, c:/foo/foo.properties).我们在本地机器中有一个属性文件(例如,c:/foo/foo.properties)。
How to read that properties file to get the content in it using javascript, jquery and angular?如何使用 javascript、jquery 和 angular 读取该属性文件以获取其中的内容?
Please provide a solution to read it, only using javascript, jquery and angular.
请提供阅读它的解决方案,仅使用 javascript、jquery 和 angular。
It's an urgent requirement.
这是一个紧迫的要求。
The answer is: It's an impossible mission.答案是:这是一个不可能完成的任务。 There is no way for you to read a file on a computer using Javascript or anything of its frameworks or libraries, except one: which is NodeJS.
您无法使用 Javascript 或其任何框架或库读取计算机上的文件,除了一个:NodeJS。
由于安全问题,您无法使用客户端脚本访问本地文件,您必须使用一些服务器端脚本(如 node.js、php 等)才能正常工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.