I have a properties file, now using javascript code I want to read the key value from the properties file.
If we are talking about reading a local javascript file from a web browser, you cannot do this due to security restrictions. Javascript, on the other hand, can read a remote file from a website using various methods (e.g. AJAX).
Take a look at this jquery plugin: http://code.google.com/p/jquery-i18n-properties/
You can use jQuery. Your properties file may be in JSON format. Then you can use this:
jQuery.getJSON( your_properties_file_url );
Source: https://habr.com/ru/post/1400965/More articles:What does the "-" operator actually do on Linux? - linuxCan I create DWORD registry keys using wix? - wixSlicing a python regex string using named groups and wildcard - pythonVariables declared outside the init () method in servlets - javaUsnig session as instance variable - javaOnScrollListener.onScroll () caused by clicking an item in a ListView - androidHow can I get the CGRect x, y, width, height values ββafter the view is authorized? - iosTinyMCE Button Press Event - tinymcePHP PDO Bit (1) returns invalid data type - phpDifference ElementTree / cElementTree? - pythonAll Articles