✔ 最佳答案
The design of the browser prevents the web page from reading the local file. It is for security reasons. Imagine the danger there is when a web page you visit can read your local file. The information from your local file, once read, can be sent to the server easily when you click a link on the web page.
The web page can read file on the server when the account that the server belongs has the permission to read that file. The web page, which is authored by someone unknown to you, can never read a page on your hard drive.
The javascript will get Access denied error.