Home > Backend Development > PHP Tutorial > javascript打开文件有关问题

javascript打开文件有关问题

WBOY
Release: 2016-06-13 12:51:59
Original
789 people have browsed it

javascript打开文件问题
<script><br /> var filename= 'C:\fakepath\mysql.php';<br /> var data = .........<br /> </script>
请教怎么让读取filename这个文件的内容道data中

javascript
------解决方案--------------------
使用 FileSystemObject 对象
但不能在 web 方式下使用

js手册中有详细的说明和示例
------解决方案--------------------
为什么不用php读取,多间的事。
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template