vue-login-adder
Version:
a confirm plugin for vue
27 lines • 784 B
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script src="../node_modules/vue/dist/vue.js"></script>
</head>
<body>
<div id="app">
<a href="javascript:;" @click='toast'>点击弹出</a>
</div>
<script>
new Vue({
el:'#app',
methods:{
toast(){
this.$toast.show("你好ljc,yhy!",function(){
alert(123);
});
}
}
})
</script>
<script type="text/javascript" src="vue-confirm.js"></script></body>
</html>