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.
		
		
		
		
		
			
		
			
				
					
					
						
							27 lines
						
					
					
						
							583 B
						
					
					
				
			
		
		
	
	
							27 lines
						
					
					
						
							583 B
						
					
					
				| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
|     <meta charset="UTF-8"> | |
|     <title>Vue中的MVVM</title> | |
|     <script type="text/javascript" src="../vue.js"></script> | |
| </head> | |
| <body> | |
| <div id='root'> | |
|     <h1>学校名称:{{name}}</h1> | |
|     <h1>学校地址:{{address}}</h1> | |
| </div> | |
| <script type="text/javascript"> | |
|     Vue.config.productionTip = false | |
|     const vm = new Vue({ | |
|         el: '#root', | |
|         data: function(){ | |
|             return { | |
|                 name: '尚硅谷', | |
|                 address: '北京' | |
|             } | |
|         } | |
|     }) | |
|     console.log(vm) | |
| </script> | |
| </body> | |
| </html> |