木子炜培先生

⑴2017底=>(年薪15万)=>31岁 ⑵2018=》(生产生活用品)并且年薪20万=>32岁 ⑶2019=>年薪30万=>把小作坊升级为工厂=>33岁 ⑷2020=>再开一个食品工厂

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
<script src="//cdn.bootcss.com/vue/2.2.4/vue.min.js"></script>
<
div id="test"> <select v-model="selected"> <option v-for="yx in YX" :value="yx.text"> {{yx.text}} </option> </select> <select> <option v-for="(zy, index) in selection" :value="zy.text" :selected="index == 0 ? true : false"> {{zy.text}} </option> </select> </div> <script> new Vue({ el: '#test', data: { selected: '计信院', YX: [{ text: '计信院', ZY: [{ text: '软件工程' }, { text: '计算机科学与技术' }, { text: "信息安全" }, ] }, { text: '商学院', ZY: [{ text: '旅游管理' }, { text: '工商管理' }, { text: "行政管理" }, ] }, ] }, computed: { selection: { get: function() { var that = this; return this.YX.filter(function(item) { return item.text == that.selected; })[0].ZY; } } } }); </script>

 

posted on 2017-02-08 08:06  木子炜培先生  阅读(396)  评论(0编辑  收藏  举报