You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
	
	
		
		
			
	
	
		
			
				
					
						
							|  |  |  | <!DOCTYPE html>
 | 
					
						
							|  |  |  | <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">
 | 
					
						
							|  |  |  |     <link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css"/>
 | 
					
						
							|  |  |  |     <script src="https://unpkg.com/vue@3.2.24/dist/vue.global.js"></script>
 | 
					
						
							|  |  |  |     <script src="https://unpkg.com/element-plus"></script>
 | 
					
						
							|  |  |  |     <title>Hello-Vue</title>
 | 
					
						
							|  |  |  | </head>
 | 
					
						
							|  |  |  | <body>
 | 
					
						
							|  |  |  | <div id="app">
 | 
					
						
							|  |  |  |     <h1>{{ title }}</h1>
 | 
					
						
							|  |  |  |     <el-button type="primary" @click="add">点我</el-button>
 | 
					
						
							|  |  |  |     <p>计数 {{ count }}</p>
 | 
					
						
							|  |  |  | </div>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <script type="text/javascript">
 | 
					
						
							|  |  |  |     const App = {
 | 
					
						
							|  |  |  |         data() {
 | 
					
						
							|  |  |  |             return {
 | 
					
						
							|  |  |  |                 title: "Hello Vue",
 | 
					
						
							|  |  |  |                 count: 0,
 | 
					
						
							|  |  |  |             }
 | 
					
						
							|  |  |  |         },
 | 
					
						
							|  |  |  |         methods: {
 | 
					
						
							|  |  |  |             add() {
 | 
					
						
							|  |  |  |                 this.count++;
 | 
					
						
							|  |  |  |             }
 | 
					
						
							|  |  |  |         }
 | 
					
						
							|  |  |  |     }
 | 
					
						
							|  |  |  |     Vue.createApp(App).use(ElementPlus).mount('#app')
 | 
					
						
							|  |  |  | </script>
 | 
					
						
							|  |  |  | </body>
 | 
					
						
							|  |  |  | </html>
 |