print()为打印,请问下载是什么函数?

phptong 2004-11-26 09:15:46
print()为打印,请问下载是什么函数?
...全文
220 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
fcsoft01 2005-07-04
  • 打赏
  • 举报
回复
webprint是一个基于表格的页面打印解决方案.先将要打印的数据及样式组织到一个HTML的TABLE元素中, 然后将这个TABLE元素传给webprint,实现分页打印预览,出打印对话框打印和直接打印. 详情参见: www.fcsoft.com.cn
glwdpy 2005-02-06
  • 打赏
  • 举报
回复
http://www.tn99.com/myblog/blogview.asp?logID=196&cateID=6
tigerhu76 2005-02-06
  • 打赏
  • 举报
回复
mark
Croatia 2004-11-26
  • 打赏
  • 举报
回复
document.execCommand("SaveAs");
这个是整个文件的保存方法。

我再去看看可不可能指定某个文件的下载。
hfjfboy 2004-11-26
  • 打赏
  • 举报
回复
IE功能大汇聚:
ie按钮

<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0>
</OBJECT>
<input onclick=document.all.WebBrowser.ExecWB(1,1) type=button value=打开 name=Button1>
<input onclick=document.all.WebBrowser.ExecWB(4,1) type=button value=另存为 name=Button2>
<input onclick=document.all.WebBrowser.ExecWB(10,1) type=button value=属性 name=Button3>
<input onclick=document.all.WebBrowser.ExecWB(6,1) type=button value=打印 name=Button>
<input onclick=document.all.WebBrowser.ExecWB(8,1) type=button value=页面设置 name=Button4>
<br/>
<input onclick=window.location.reload() type=button value=刷新 name=refresh>
<input onclick="window.external.ImportExportFavorites(true,'');" type=button value=导入收藏夹 name=Button5>
<input onclick="window.external.ImportExportFavorites(false,'');" type=button value=导出收藏夹 name=Button32>
<input onclick="window.external.AddFavorite(location.href, document.title)" type=button value=加入收藏夹 name=Button22>
<br/>
<input onclick="window.external.ShowBrowserUI('OrganizeFavorites', null)" type=button value=整理收藏夹 name=Submit2>
<input onclick='window.location="view-source:" + window.location.href' type=button value=查看源文件 name=Button7>
<input onclick="window.external.ShowBrowserUI('LanguageDialog', null)" type=button value=语言设置 name=Button6>
<input onclick=history.go(1) type=submit value=前进 name=Submit>
<input onclick=history.go(-1) type=submit value=后退 name=Submit2>
要完成此效果把如下代码加入到<body>区域中

<input type="button" name="Button" value="点击保存页面" onClick="document.all.WebBrowser.ExecWB(4,1)">
<object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
</object>
Croatia 2004-11-26
  • 打赏
  • 举报
回复
就是右键里面另存为什么的?
phptong 2004-11-26
  • 打赏
  • 举报
回复
下载图片之类的
phptong 2004-11-26
  • 打赏
  • 举报
回复
下载
Croatia 2004-11-26
  • 打赏
  • 举报
回复
你说的下载是什么概念?
Croatia 2004-11-26
  • 打赏
  • 举报
回复
好像没有,不过,你可以通过服务器,从后台传过来一个文件流。这样也可以保存的。

87,993

社区成员

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

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