সম্পাদনা
<!DOCTYPE html> <html> <body> <div id="app"> <p draggable="true" @drag="dragging"> এই লেখাটি টেনে নিন </p> <p>{{ message }}</p> </div> <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script> <script> Vue.createApp({ data() { return { message: "" }; }, methods: { dragging() { this.message = ""; } } }).mount("#app"); </script> </body> </html>
পূর্বরূপ