Skip to content

Instantly share code, notes, and snippets.

@Panigale
Last active July 26, 2016 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Panigale/3264b39c8deb63332ca44fd04a887332 to your computer and use it in GitHub Desktop.
Save Panigale/3264b39c8deb63332ca44fd04a887332 to your computer and use it in GitHub Desktop.
{{-- 引用vue的主要檔案 --}}
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.26/vue.min.js"></script>
<div id="app">
<ul>
<li v-for="todo in todos">
{{ todo.text }}
</li>
</ul>
</div>
<script type="javascript/text">
new Vue({
el: '#app',
data: {
todos: [
{ text: 'Learn JavaScript' },
{ text: 'Learn Vue.js' },
{ text: 'Build Something Awesome' }
]
}
})
<script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment