v-cloak does not work in vue.js?

前端 未结 6 1537
半阙折子戏
半阙折子戏 2020-12-13 06:24

There is a div in my page that for show the error message.When I refresh the page,it will appear for a while then it disappear. I added v-cloak but

6条回答
  •  自闭症患者
    2020-12-13 06:48

    If you are using CDN to get Vue and using Bootstrap CSS then the reason might be you are loading the Bootstrap CSS in the bottom of the body tag, moving it back to the head tag worked for me. Make sure that you keep that vueJS file in the button as it is.

    
    
      All link and script tag here
    
     
      
    {{ something }}

提交回复
热议问题