I am a new one to JCEF. Now, I want to bind a java function to js window object. Say:
- Code: Select all
public void log(string msg){
logger.info(msg);
}
So that i can call it in js codes. Eg:
- Code: Select all
function onload(){
...//business logic codes
window.log('page is loaded');
}
Is there a way to do it? Or some workaround way is also ok.
Thanks so much!