• html 部分:
<div >
</div>
  • js 部分(将js代码放在 body 的 onload事件中: <body onload="init()">):
function init() {
  window.vue = new Vue({
                el: '#sample',
                data: function () {
                    return {
                    }
                },
                methods: {
                }
            })
  window.vue.$message('message')
}

相关文章:

  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2021-04-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-24
  • 2022-12-23
相关资源
相似解决方案