<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>结构渲染</title>
</head>
<body>
    <div id="app">
        <ul v-for="(value,prop) in user">
            <li>{{prop}}:{{value}}</li>
        </ul>
    </div>

    <script src="../js/vue.js"></script>

    <script>
        let vm = new Vue({
            el:'#app',
            data:{
                user:{
                    name:'tom',
                    age:26,
                    gender:'女'
                }
            }
        });
    </script>
</body>
</html>