Last active
July 26, 2016 13:01
-
-
Save Panigale/3264b39c8deb63332ca44fd04a887332 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{-- 引用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