image.png

代码

<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue.js中v-for循环指令-循环显示整数和九九乘法表</title>
    <script src="//static.gzj2001.com/vue/vue.js"></script>
</head>

<body>
    <div id="app">
        <div v-for="number in 9">{{number}}</div>
        <hr>

        <div v-for="x in 9 ">
            <b v-for="y in x">{{x}}*{{y}}={{x*y}}|</b>
        </div>
    </div>
    <script>
        new Vue({
            el: "#app",
            data: {

            }
        })
    </script>
</body>

</html>

效果

image.png