Fourth, use js] [miniblink function call aardio

First, the examples illustrate:

Written in html js code, call aardio function, interface and interaction to achieve the effect of background


Second, the case features:

1, close the application window

2, drag the application window

3, call the function to achieve aardio native pop effect


Third, the results show:

Pictures .png   Pictures .png

Fourth, the code shows:

1, the key code:

js native to the callback function

/ * 
As long as there is written mb.external local functions can be called directly in JS. 
* / 
Mb.external = { 
    // drag the window 
    hitCaption = function () { 
        winform.hitCaption (); 
    }; 
    Close = function () { 
        winform.close (); 
    }; 
    aardioCall = function (STR) { 
        winform.msgbox (STR); 
    }; 
}

html in writing js call type to use js function, but function calls aardio need to add "external."

Pictures .png

2, the code examples:

Pictures .png

Fifth, the correlation function:

1, hyperlinks aardio function call:

Pictures .png

2, js event calls aardio function:

Pictures .png

Sixth, the proper way to share:

https://note.youdao.com/ynoteshare1/index.html?id=0e94da6b40d78cfed7ed3f99ad8b1107&type=note

Seven excerpt link:

Tutorial: Using web.blink (miniblink) embedded browser controls: http://bbs.aardio.com/forum.php?mod=viewthread&tid=22004


Guess you like

Origin blog.51cto.com/10466450/2463992