作者:平凡黯淡_551 | 来源:互联网 | 2023-09-09 13:23
IdliketowriteanapplicationthatwouldusebothJavascriptandHTMLasfortheuserinterface.
I'd like to write an application that would use both Javascript and HTML as for the user interface. The app wouldn't really need an internet connection but will need access to the user's local files.
我想编写一个将Javascript和HTML用作用户界面的应用程序。该应用程序不需要互联网连接,但需要访问用户的本地文件。
My first thought was that this would be impossible in a browser due to the security restrictions on the access to local files.
我的第一个想法是,由于访问本地文件的安全限制,这在浏览器中是不可能的。
My second thought was to try to use webkit directly from C++ and use Python instead of Javascript, but that seems rather complicated, and I feel like overkilling by using Qt.
我的第二个想法是尝试直接从C ++使用webkit并使用Python而不是Javascript,但这似乎相当复杂,我觉得使用Qt过度使用。
My third thought was to use a signed Java applet to make all local accesses, but then I'm not too sure of this either.
我的第三个想法是使用一个签名的Java小程序来进行所有本地访问,但是我对此也不太确定。
Any suggestions on what I should do?
关于我应该做什么的任何建议?
7 个解决方案