简体   繁体   English

浏览器中的Javascript,将数据打印到文件

[英]Javascript in browser, print data to file

Im running a javascript trading application in my browser, provided by my bank. 我在我的银行提供的浏览器中运行了javascript交易应用程序。 The application gives me realtime data on stock quotes etc. Is there anyway i can get the browser to make the data available outside the browser, like writing the info to a file every ten seconds? 该应用程序为我提供了股票报价等的实时数据。无论如何,我是否可以使浏览器在浏览器外部使数据可用,例如每十秒钟将信息写入一个文件? Im using firefox. 我正在使用Firefox。

No, the Javascript is running in a sandbox. 否,JavaScript正在沙箱中运行。 You can write it into a html5 database build in with your browser. 您可以将其写入浏览器内置的html5数据库中。

May be, the application is using a SOAP-Service, which you can use directly. 可能是,该应用程序正在使用SOAP服务,您可以直接使用它。

there is a way save the web pages. 有一种方法可以保存网页。 hope it will help you. 希望对您有帮助。 The add on is available to save web pages in mozilla. 该插件可用于在mozilla中保存网页。 see https://addons.mozilla.org/en-US/firefox/addon/auto-save-document/ 参见https://addons.mozilla.org/en-US/firefox/addon/auto-save-document/

有一种简单明了的方法,它需要一台服务器(即使是非常笨拙的服务器):您可以将数据发布到服务器,并用包含已发布数据的文件作为响应(不多也不少),提示用户保存。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM