A data responsive
- How to understand Responsive
- in response to html5 formula: screen size change results in a change pattern
- Responsive Data: changes in the data lead to changes in the page content
What is Data Binding
Binding: filling data into the label
v-once compiled only once
After the display contents are no longer responsive function
Two, v-once instruction
v-once scenarios
If the subsequent information without further modification, use v-once, this can improve performance.
v-once usage
Add v-once instruction required filling Tags
- E.g
<div id='app'>
<div>{{msg}}</div>
<div v-once>{{info}}</div>
</div>
<script type="text/javascript" src="js/vue.js"></script>
<script type="text/javascript">
var vm =new Vue({
el:'#app',
data:{
msg:'HelloWorld',
info:'Vue是真得好!!!'
}
})
</script>
Results:
In the browser console, by vm.msg=***
changing the value of the msg, can not be used vm.info=***
to change the value of info