update
This commit is contained in:
		
							parent
							
								
									737c170961
								
							
						
					
					
						commit
						0d676fe666
					
				@ -813,15 +813,10 @@ DOM对象的属性和HTML的标签属性几乎是一致的。例如:src、titl
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
上图显示,因为innerText识别不出标签,所以把标签也给获取到了。
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
**修改内容举例:**(innerHTML会修改标签本身,而innerText则不会)
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
上图显示,因为innerText识别不出标签,所以把标签也给添加进去了。
 | 
			
		||||
 | 
			
		||||
### nodeType属性
 | 
			
		||||
 | 
			
		||||
这里讲一下nodeType属性。
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user