Skip to content

Instantly share code, notes, and snippets.

@movii
Last active June 19, 2018 02:20
Show Gist options
  • Save movii/f13df34e37065dd5f73b30fa3832c30c to your computer and use it in GitHub Desktop.
Save movii/f13df34e37065dd5f73b30fa3832c30c to your computer and use it in GitHub Desktop.
配合 Vue.js 配置 Webpack。原文:https://moxo.io/blog/2016/09/10/npm-vue-webpack/
<template>
<div>
<div>计数器值为: {{ count }}</div>
<button @click="count++">计数器 + 1</button>
</div>
</template>
<script>
export default {
data () { return { count: 0 } }
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment