Open dongshimou opened 7 years ago
i write a qt program and a vue page.
const auto webview = new QWebEngineView; const auto webpage = webview->page(); webview->load({ QLatin1String{"http://127.0.0.1:8080/#/xxx"} });
webpage can only use webpage->runJavaScript("a javascript string");
webpage
webpage->runJavaScript("a javascript string");
methods: { verify(){ console.log(this.input) } }
how to write the "a javascript string" call vue method like the "verify"? last,my english is poor...
i write a qt program and a vue page.
webpage
can only usewebpage->runJavaScript("a javascript string");
how to write the "a javascript string" call vue method like the "verify"? last,my english is poor...