摘要: String path = ""; String str = ""; FileWriter writer; try { path = ""; path = "c:/test/test.txt";//目录 writer = new FileWriter(path); writer.write("123"); //到达指定目录writer.close(); } catch (IOException e2) { e2.printStackTrace(); } 阅读全文
posted @ 2012-02-01 22:06 镇水古月 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 引用:http://zhidao.baidu.com/question/88934003.html提示:把代码保存为a.htm即可预览效果<script> function setDivBG(s) { document.getElementById("div1").className=s; } </script> <head><style type="text/css"> .style1 { width: 100px; height: 100px; background-image:url('htt 阅读全文
posted @ 2012-02-01 17:47 镇水古月 阅读(335) 评论(0) 推荐(0) 编辑