We have a properties file in local machine (for example, c:/foo/foo.properties).
How to read that properties file to get the content in it using javascript, jquery and angular?
Please provide a solution to read it, only using javascript, jquery and 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.
由于安全问题,您无法使用客户端脚本访问本地文件,您必须使用一些服务器端脚本(如 node.js、php 等)才能正常工作。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.