在我的node-webkit的package.json文件中,我有:"chromium-args" : "--url="http://www.google.com""
我試圖使用反斜槓\「www.google.com \」,但webkit在使用黑色斜槓時似乎根本沒有打開。如果我將黑色邊框留下,webkit會加載窗口,但會產生JSON語法錯誤。node-webkit鉻參數的正確語法是什麼?
的package.json文件代碼:
{
"main": "index.html",
"name": "nw-demo",
"description": "demo app of node-webkit",
"version": "0.1.0",
"keywords": [ "demo", "node-webkit" ],
"window": {
"icon": "link.png",
"toolbar": true,
"width": 800,
"height": 500,
"position": "mouse",
"min_width": 400,
"min_height": 200,
"max_width": 800,
"max_height": 600
},
"webkit": {
"plugin": true
},
"chromium-args" : "--url=\"http://www.google.com\""
}
什麼是正確的JSON語法爲 「鉻ARGS」?
我代替我的主要領域與遠程網站的URL和工作如預期。我在發佈我的問題之前嘗試過,但node-webkit未按預期工作。我認爲最初的試驗和錯誤是我沒有正確壓縮文件。這次我刪除了我的app.nw並從頭開始。現在webkit似乎按預期工作。 – dottedquad 2013-05-01 01:47:14