保存进度!
This commit is contained in:
		@@ -2,7 +2,7 @@
 | 
				
			|||||||
 * @Author: Kane
 | 
					 * @Author: Kane
 | 
				
			||||||
 * @Date: 2022-10-12 08:49:14
 | 
					 * @Date: 2022-10-12 08:49:14
 | 
				
			||||||
 * @LastEditors: Kane
 | 
					 * @LastEditors: Kane
 | 
				
			||||||
 * @LastEditTime: 2022-10-21 00:09:08
 | 
					 * @LastEditTime: 2022-10-21 11:46:35
 | 
				
			||||||
 * @FilePath: \car_dealer\css\kane.css
 | 
					 * @FilePath: \car_dealer\css\kane.css
 | 
				
			||||||
 * @Description: vue学习用的样式表!
 | 
					 * @Description: vue学习用的样式表!
 | 
				
			||||||
 * 
 | 
					 * 
 | 
				
			||||||
@@ -40,14 +40,15 @@ hr {
 | 
				
			|||||||
    background-color: steelblue;
 | 
					    background-color: steelblue;
 | 
				
			||||||
    border: none;
 | 
					    border: none;
 | 
				
			||||||
    height: 3px;
 | 
					    height: 3px;
 | 
				
			||||||
 | 
					    /* width: 100% */
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.test {
 | 
					/* .test {
 | 
				
			||||||
    width: 110vw;
 | 
					    width: 110vw;
 | 
				
			||||||
    height: 100vh;
 | 
					    height: 100vh;
 | 
				
			||||||
    border: 1px solid red;
 | 
					    border: 1px solid red;
 | 
				
			||||||
    overflow: auto;
 | 
					    overflow: auto;
 | 
				
			||||||
}
 | 
					} */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
button {
 | 
					button {
 | 
				
			||||||
    padding: 5px 10px;
 | 
					    padding: 5px 10px;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@
 | 
				
			|||||||
 * @Author: Kane
 | 
					 * @Author: Kane
 | 
				
			||||||
 * @Date: 2022-10-20 15:07:59
 | 
					 * @Date: 2022-10-20 15:07:59
 | 
				
			||||||
 * @LastEditors: Kane
 | 
					 * @LastEditors: Kane
 | 
				
			||||||
 * @LastEditTime: 2022-10-21 00:07:49
 | 
					 * @LastEditTime: 2022-10-21 11:47:35
 | 
				
			||||||
 * @FilePath: \car_dealer\vue\vue_01.html
 | 
					 * @FilePath: \car_dealer\vue\vue_01.html
 | 
				
			||||||
 * @Description: 
 | 
					 * @Description: 
 | 
				
			||||||
 * 
 | 
					 * 
 | 
				
			||||||
@@ -10,53 +10,68 @@
 | 
				
			|||||||
-->
 | 
					-->
 | 
				
			||||||
<!DOCTYPE html>
 | 
					<!DOCTYPE html>
 | 
				
			||||||
<html lang="en">
 | 
					<html lang="en">
 | 
				
			||||||
 | 
					    <head>
 | 
				
			||||||
 | 
					        <meta charset="UTF-8" />
 | 
				
			||||||
 | 
					        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
 | 
				
			||||||
 | 
					        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
 | 
				
			||||||
 | 
					        <title>vue3入门</title>
 | 
				
			||||||
 | 
					        <link rel="stylesheet" href="../css/root.css" />
 | 
				
			||||||
 | 
					        <link rel="stylesheet" href="../css/normalize.css" />
 | 
				
			||||||
 | 
					        <link rel="stylesheet" href="../css/kane.css" />
 | 
				
			||||||
 | 
					        <script src="../js/vue/vue.global.js"></script>
 | 
				
			||||||
 | 
					    </head>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<head>
 | 
					    <body>
 | 
				
			||||||
    <meta charset="UTF-8" />
 | 
					        <div id="app">
 | 
				
			||||||
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
 | 
					            <div class="content">
 | 
				
			||||||
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
 | 
					                <h1>{{title}}</h1>
 | 
				
			||||||
    <title>vue3入门</title>
 | 
					                <h1>{{count}}</h1>
 | 
				
			||||||
    <link rel="stylesheet" href="../css/root.css" />
 | 
					                <button type="button" v-on:click="addCount()">计数器</button>
 | 
				
			||||||
    <link rel="stylesheet" href="../css/normalize.css" />
 | 
					                <button type="button" v-on:click="switchButton()">
 | 
				
			||||||
    <link rel="stylesheet" href="../css/kane.css" />
 | 
					                    {{btn_title}}
 | 
				
			||||||
    <script src="../js/vue/vue.global.js"></script>
 | 
					                </button>
 | 
				
			||||||
</head>
 | 
					                <hr />
 | 
				
			||||||
 | 
					                <h1>测试列表渲染</h1>
 | 
				
			||||||
<body>
 | 
					                <table>
 | 
				
			||||||
    <div id="app">
 | 
					                    <tr v-for="stuff in stuff_list">
 | 
				
			||||||
        <div class="content">
 | 
					                        <td>{{stuff.name}}</td>
 | 
				
			||||||
            <h1>{{title}}</h1>
 | 
					                        <td>{{stuff.age}}</td>
 | 
				
			||||||
            <h1>{{count}}</h1>
 | 
					                    </tr>
 | 
				
			||||||
            <button type="button" v-on:click="addCount()">计数器</button>
 | 
					                </table>
 | 
				
			||||||
            <button type="button" v-on:click="switchButton()">{{btn_title}}</button>
 | 
					                <hr />
 | 
				
			||||||
 | 
					            </div>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
    </div>
 | 
					    </body>
 | 
				
			||||||
</body>
 | 
					    <script>
 | 
				
			||||||
<script>
 | 
					        const app = {
 | 
				
			||||||
    const app = {
 | 
					            data() {
 | 
				
			||||||
        data() {
 | 
					                return {
 | 
				
			||||||
            return {
 | 
					                    title: "vue3 入门!",
 | 
				
			||||||
                title: "vue3 入门!",
 | 
					                    count: 0,
 | 
				
			||||||
                count: 0,
 | 
					                    btn_title: "走你",
 | 
				
			||||||
                btn_title: "走你",
 | 
					                    btn_switch: true,
 | 
				
			||||||
                btn_switch: true,
 | 
					                    stuff_list: [
 | 
				
			||||||
            };
 | 
					                        { name: "kane1", age: "40" },
 | 
				
			||||||
        },
 | 
					                        { name: "kane2", age: "41" },
 | 
				
			||||||
        methods: {
 | 
					                        { name: "kane3", age: "42" },
 | 
				
			||||||
            addCount() {
 | 
					                        { name: "kane4", age: "43" },
 | 
				
			||||||
                this.count++;
 | 
					                        { name: "kane5", age: "44" },
 | 
				
			||||||
 | 
					                    ],
 | 
				
			||||||
 | 
					                };
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
            switchButton() {
 | 
					            methods: {
 | 
				
			||||||
                this.btn_switch = !this.btn_switch;
 | 
					                addCount() {
 | 
				
			||||||
 | 
					                    this.count++;
 | 
				
			||||||
                this.btn_title = this.btn_switch ? "走你!" : "滚";
 | 
					                },
 | 
				
			||||||
 | 
					                switchButton() {
 | 
				
			||||||
 | 
					                    this.btn_switch = !this.btn_switch;
 | 
				
			||||||
 | 
					                    this.btn_title = this.btn_switch ? "走你!" : "滚";
 | 
				
			||||||
 | 
					                },
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
        },
 | 
					        };
 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const vm = Vue.createApp(app);
 | 
					        const vm = Vue.createApp(app);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    vm.mount("#app");
 | 
					        vm.mount("#app");
 | 
				
			||||||
</script>
 | 
					    </script>
 | 
				
			||||||
 | 
					</html>
 | 
				
			||||||
</html>
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user