这句有问题吗document.write("#") 为什么执行会出错啊(在线等待中)

kuchong 2004-12-07 08:04:33
这句有问题吗document.write("#") 为什么执行会出错啊
...全文
182 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
blues-star 2004-12-08
  • 打赏
  • 举报
回复
'<!--#include...' is a server side include,when a asp page is loading, IIS will replace the tag with the content in the file you specified, to your code, content should be the characters stored in the file 'conn.asp', when the page is loaded by IE the document.write method will be changed to something else, you can use view source menu item of IE context menu, to see what it is changed to.
prcgolf 2004-12-08
  • 打赏
  • 举报
回复
up
wasg 2004-12-07
  • 打赏
  • 举报
回复
经测试
writeln('<!--#include file=conn.asp-->');
出错


document.writeln('<!--#include file=conn.asp-->');
不出错!
kuchong 2004-12-07
  • 打赏
  • 举报
回复
是在jscript中有这样一句
writeln('<!--#include file=conn.asp-->');
只要取消#就不出错,加了就错,我该怎么办拉,帮帮忙吧:)
lienzhu 2004-12-07
  • 打赏
  • 举报
回复
没问题,测试通过!
<script>
document.write("#")
</script>

87,910

社区成员

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

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