Vue basis - a common method

<div ID = "App">
<! - 10 -> {{}} <br>. 5. 5 +
{? {OK 'YES': 'NO' <br>}} <- OK is true of! when is YES, false time of NO ->
<message.split {{( 'N') Reverse () the Join ( '')}..} -! message to the dividing line is divided into an array of N, the inverted array elements, data elements into a string ->
<div the bind-V: ID = " 'list-' + ID"> novice tutorial </ div> 
</ div>

<Script>
new new Vue ({
EL: '#app',
Data: {
OK: to true,
Message: 'RUNOOB', RUNOOB // -> RU, the OOB -> the OOB, RU -> OOBRU
ID: //. 1 ID = " 'list-' + ID "=. 1-List
}
})

alter(document.getelementById('app').innerHTML);
</script>

 

result:

10
YES
OOBRU

Rookie Tutorial

Guess you like

Origin www.cnblogs.com/clamp7724/p/Vue.html