vue.js列表渲染项目实例

 1 部门:
 2 <span class="select-box inline">
 3 <select id="partmentId" class="select radius" onchange="bindData();">
 4 <option value="0">全部</option>
 5 <option v-for="item in partment" value="{{item.WID}}">{{item.PART_NAME}}</option>
 6 </select>
 7 </span>
 8 
 9 <script LANGUAGE="JavaScript">
10 var app = new Vue({
11             el:'body',
12             data:{
13                 partment:GetXmlBySql("select wid,part_name from cm_department where PARENT_CODE='BM' ")
14             }
15         })
16 </script>

 

posted @ 2017-12-06 13:45  朴pu客  阅读(247)  评论(0编辑  收藏  举报