screen_rotation
Copied to Clipboard
<!DOCTYPE html> <html lang="en"> <head> <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script> </head> <body> <div id="app"> <h3>Vue 3 Print Page</h3> <p>This is some content that you might want to print.</p> <button @click="printPage">Print Page</button> </div> <script type="module"> const { createApp } = Vue; createApp({ setup() { const printPage = () => { window.print(); }; return { printPage }; } }).mount("#app"); </script> <style scoped></style> </body> </html>