remove original English text
This commit is contained in:
		
					parent
					
						
							
								baf44c7a41
							
						
					
				
			
			
				commit
				
					
						28635e5f2c
					
				
			
		
					 1 changed files with 1 additions and 5 deletions
				
			
		| 
						 | 
					@ -1,15 +1,11 @@
 | 
				
			||||||
# `文件`对象
 | 
					# `File`对象
 | 
				
			||||||
 | 
					
 | 
				
			||||||
为了让用户能够通过HTML5的file API直接操作本地文件,DOM的File接口提供了对本地文件的抽象。Electron在File接口中增加了一个path属性,它是文件在系统中的真实路径。
 | 
					为了让用户能够通过HTML5的file API直接操作本地文件,DOM的File接口提供了对本地文件的抽象。Electron在File接口中增加了一个path属性,它是文件在系统中的真实路径。
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The DOM’s File interface provides abstraction around native files in order to let users work on native files directly with the HTML5 file API. Electron has added a path attribute to the File interface which exposes the file’s real path on filesystem.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
获取拖动到APP中文件的真实路径的例子:
 | 
					获取拖动到APP中文件的真实路径的例子:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Example on getting a real path from a dragged-onto-the-app file:
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
<div id="holder">
 | 
					<div id="holder">
 | 
				
			||||||
  Drag your file here
 | 
					  Drag your file here
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue