为什么输出是乱码?

HungryBoy 2003-09-18 10:47:43
Win1.document.open();
Win1.document.writeln('<html><meta http-equiv="Content-Type" content="text/html; charset=GBK"><head><title>' + titleList[1] + '</title></head>');
Win1.document.writeln('<body bgcolor="' + tableBackColor + '" text="Black" link="Blue" vlink="Gray" LEFTMARGIN=0 onload="window.focus()">');
Win1.document.writeln('<center><FONT face="宋体" SIZE="-1"><b>'+LayerNameShow+'</b>');
Win1.document.writeln('</font></center></body></html>');
Win1.document.close();
...全文
42 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
HungryBoy 2003-09-22
  • 打赏
  • 举报
回复
????
HungryBoy 2003-09-18
  • 打赏
  • 举报
回复
LayerNameShow是变量,值包含中文字符,但是输出之后看到的是:½áºÏ±í

87,996

社区成员

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

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