node.js - How does electron get the elements in webview, which is the loaded website?
大家讲道理
大家讲道理 2017-05-16 13:42:29
0
1
1126

When loading an online website, how do I get the elements in the webview? I can't get them. I hope someone can give me some advice! I'm a newbie and I still don't understand it

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
巴扎黑
##获取iframe
var frame =document.getElementById("iframeId");
##获取iframe document
frame.contentWindow.document.getElementById("inputId");
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template