43html 成功
<!DOCTYPLE html>
<html>
<head>
<title>
222222
</title>
</head>
<body>
<script src="https://unpkg.com/vue@next"></script>
<div id="bind-attribute">
<span v-bind:title="message">
鼠标悬停几秒钟查看此处动态绑定的提示信息!
</span>
</div>
<script>
const AttributeBinding = {
data() {
return {
message: 'You loaded this page on ' + new Date().toLocaleString()
}
}
}
Vue.createApp(AttributeBinding).mount('#bind-attribute')
</script>
</body>
</html>
vite的待试
好像不用vite
直接html和js就行
前面试过