0
없이 내가 몇 가지 문제에 도달했다 중지 : 심지어 2 차 경고에 도달하고 있지 않다처럼FSO.CreateTextFile는 - 행동
<script language="javascript">
function MyFunc()
{
var str = document.getElementById("TextArea1").value;
alert(str);
}
function CreateFile()
{
//var path = document.location.substring(8, (path.length - 4)) + ".txt";
var path = "z:\\file.txt";
alert(path);
var fso = new ActiveXObject("Scripting.FileSystemObject");
alert("Set FSO.");
var s = fso.CreateTextFile(path, true);
alert("Created.");
var str = document.getElementById("Select1").value;
s.write(str);
alert("Written.");
s.close();
}
</script>
보인다. 내가 아는 게 있니?
나중에 호출합니다. – user2868288