1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| <!DOCTYPE html> <html>
<head> <meta charset="utf-8"> <title>BotUI</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <link rel="stylesheet" href="https://unpkg.com/botui/build/botui.min.css" /> <link rel="stylesheet" href="https://unpkg.com/botui/build/botui-theme-default.css" /> </head>
<body> <div id="my-botui-app"> <bot-ui></bot-ui> </div> <script src="https://cdn.jsdelivr.net/vue/latest/vue.min.js"></script> <script src="https://unpkg.com/botui/build/botui.min.js"></script> <script> var botui = new BotUI('my-botui-app'); botui.message.add({ content: 'Hello There!' }).then(function () { botui.message.add({ content: 'How are you?' }); }); </script> </body>
</html>
|