• vue问题:如何把optins的答案选项 拆开循环显示
  • 其它

<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> </head> <body>    <div id="app">            <div v-for="as in products">                <div class="title">{{ as.title}}</div>                <ul>                    <li>{{ as.options }}</li>                </ul>            </li>              </div>    <script src="https://unpkg.com/vue"></script>    <script type="text/javascript">        const app = new Vue({            el: '#app',            data: {                products:[]            },            created() {                fetch('https://ser-html5.8531.cn/dl/yzw-dati/init.php?username='+Math.random())                .then(response => response.json())                .then(json => {                    this.products = json.data;                })            }        })    </script> </body> </html>


  • 西西    2019-11-27 10:24:23
  • 阅读 589    收藏 0    回答 1
  • 邀请
  • 收藏
  • 分享
发送
登录 后发表评论
  • 51testing软件测试圈微信