- 循环在一个下拉列表框里
DOCTYPE html>
<html lang&#61;"en">
<head><meta charset&#61;"UTF-8"><title>Titletitle><script type&#61;"text/Javascript" src&#61;"js/vue.js">script>
head>
<body><div id&#61;"time"><select v-model&#61;"select" ><option v-for&#61;"option in options" v-bind:value&#61;"option.id">{{option.title}}option>select><p v-text&#61;"select">p>div>
body>
<script type&#61;"text/Javascript">var datetime&#61;[{"id":485,"title":"三角函数60-80课程","user_package_id":165,"progress":0},{"id":486,"title":"数列 ","user_package_id":165,"progress":0}]var time&#61; new Vue({el:&#39;#time&#39;,data:{select:&#39;&#39;,options:datetime}})
script>
html>