【electron】electron-builder-start 引入VUE

【練習代碼git】: https://github.com/SmileEricXin/electronPractice.git 

html 做以下修改:

<html>
  <head>
      <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
  </head>
  <body>
    <div id="practice">
      {{ msg }}
    </div>
    <script>
      new Vue({
        el: '#practice',
        data: {
          msg: 'data from vue'
        }
      })
    </script>
  
  </body>
</html>

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章