如何用JS在本地机上生成一个文本文件并将TEXTAREA的内容写入里面,谢谢

cloud_leonhart 2002-08-10 03:31:49
如何用JS在本地机上生成一个文本文件并将TEXTAREA的内容写入里面,谢谢
...全文
247 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
cloud_leonhart 2002-08-11
  • 打赏
  • 举报
回复
i see
Reve 2002-08-11
  • 打赏
  • 举报
回复
Only if the machine is yours.
Change the register by regedit.exe.
cloud_leonhart 2002-08-11
  • 打赏
  • 举报
回复
UP
cloud_leonhart 2002-08-10
  • 打赏
  • 举报
回复
Reve(仨仁仕) 有没有办法去掉ACTIVEX的安全提示?
Reve 2002-08-10
  • 打赏
  • 举报
回复
var FSO=new ActiveXObject("Scripting.FileSystemObject");
var curFileName="c:\test.txt";
try
{
var txt=FSO.OpenTextFile(curFileName,2,true);
txt.Write("What you want to write.");
txt.Close();
curFileContentChange=false;
}
catch(e)
{
alert("Error in opening and writing the file "+filename+" .);
}
richardluopeng 2002-08-10
  • 打赏
  • 举报
回复
不会,学习。。

87,996

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧