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

javascript打开文件有关问题

WBOY
WBOYOriginal
2016-06-13 12:51:59731browse

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

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

js手册中有详细的说明和示例
------解决方案--------------------
为什么不用php读取,多间的事。
Statement:
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
Previous article: php 文件下传 简单代码 Next article: php字符轮换