小弟想用過JS保存頁面指定內容到已有的txt文檔內,請問該怎么實現呢?
目前只能實現先新建txt再添加內容:
<script language="javascript" >
function saveTxt(arr){
var fso = new ActiveXObject("Scripting.FileSystemObject")
var tf = fso.CreateTextFile("d:\\answer.txt", true);
tf.Write (arr);
tf.Close();
}</script>新手上路,只有200園豆,全送上啦!先謝謝各位了
請問用JS怎么在已有txt文檔內添加內容?
當年話下
2018-12-07 01:14:39