Solve the problem of {
{message}} flash back when vue page is loaded. When
used together with css rules such as [v-cloak]{display:none}, this instruction can hide uncompiled Mustache tags until the instance is ready.
The v-cloak command can bind a set of css styles like a css selector, and then this set of css will be effective until the end of the instance compilation.
eg:
// <div> 不会显示,直到编译结束。
[v-cloak]{
display:none;
}
<div v-cloak>
{
{ message }}
</div>