Tag: tiddlywiki

电子浏览器的JavaScript错误

我对节点,JavaScript和电子都很陌生。 我只是试图编写一个简单的应用程序,在浏览器窗口中打开本地的HTML文件。 本地文件有一些复杂的embedded式JavaScript(tiddlywiki)。 这里是一些示例代码(我没有使用本地文件,但结果是一样的): const {app, BrowserWindow} = require('electron') const path = require('path') const url = require('url') let win function createWindow () { // Create the browser window. win = new BrowserWindow({width: 800, height: 600}) // and load the index.html of the app. win.loadURL(url.format({ pathname: 'tiddlywiki.com', protocol: 'http:', slashes: true, webPreferences: { nodeIntegration: false, } […]

tiddlyWiki在node-webkit上不显示内容

我遵循教程 (在“入门”部分),介绍如何将TiddlyWiki与node-webkit结合使用。 当我然后运行nw.exe它不显示任何东西。 我在Windows(64位),并安装了32位版本的Windows。 不知道我在做什么错,或者它只是一个错误。 我也尝试添加index.html和package.json到档案(称为app.nw)并运行与nw.exe,但仍然没有运气。