webview代码集锦

admin2024-01-31  2.4K+

 

wb.doscript("这也是标识","function a(){return document.title;};a();")

wb.enableDefaultContextMenus(false); //禁止鼠标右键

wb.doScript("document.querySelector('a').innerText",function(result){
    	console.dump(result);//回调结果
});

var text=wb.eval("document.querySelector('#title').innerText");
console.dump(text);

//点击按钮
wb.waitEle("#su","this.click()");
转载请注明原文地址: https://aardio.net/read-314.html
最新回复(0)
aardio问答
aardio编程语言