vue v-model lazy懒加载
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
<div id="app">
<p>{{ message }}</p>
<!-- 回车、失去焦点 懒加载 -->
<input type="text" name="" id="" value="" v-model.lazy="message" />
</div>
<script>
const app = new Vue({
el: '#app',
data: {
message: 'Hello Vue.js!',
},
})
</script>
</body>
</html>