關於document.documentElement.outerHTML的問題 我用alert(document.documentElement.outerHTML),發現取出的結果隻是頁面內容的前半部分,頁面是html格式的。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 怎麼顯示?那document.documentElement.outerHTML到底有沒有字符數量的限制?我的頁面字符數量大概有3000以上。 我用alert(document.documentElement.outerHTML.length)发现显示出来的数字是64654,可是alert(document.documentElement.outerHTML)顯示出來的根本沒那麼多字符,而且我用word统计的结果是字數只有3500多,字元數有66100多(不含空白) <body><textarea id=x style="width:100%;height:50%"></textarea><input type=button onclick="x.value=document.documentElement.outerHTML" value=view> 可以全部都顯示出來,可是有些字符被改掉了比如http://mklplm.mic.com.cn/Windchill/servlet/WindchillAuthGW/wt.enterprise.URLProcessor/URLTemplateAction?u8&oid=OR%3Awt.workflow.engine.WfProcess被改成了http://mklplm.mic.com.cn/Windchill/servlet/WindchillAuthGW/wt.enterprise.URLProcessor/URLTemplateAction?u8&oid=OR%3Awt.workflow.engine.WfProcess在&后面都被子加上了amp , 这是怎么回事? 在页面上点右键,查看源程序时显示的是正确的字符,但显示在textarea里就不一样了. 请教一个js递归循环的问题。求大神解答! window.showModalDialog 对像不支持此属性或方法 js正则匹配<tbody> 求大虾写一段js的退弹代码,自己写的只有ie能弹出 可以通过js生成8位数的数字随机码吗? 在线急,Javascript如何禁止IE的刷新功能? js控制按钮的一个问题,请教! 关于input 的disabled 属性? 请教大家一个问题,谢谢! 在线客服js弹窗 JavaScript 变量的定义 关于后台调脚本的问题
<textarea id=x style="width:100%;height:50%"></textarea>
<input type=button onclick="x.value=document.documentElement.outerHTML" value=view>
http://mklplm.mic.com.cn/Windchill/servlet/WindchillAuthGW/wt.enterprise.URLProcessor/URLTemplateAction?u8&oid=OR%3Awt.workflow.engine.WfProcess
被改成了
http://mklplm.mic.com.cn/Windchill/servlet/WindchillAuthGW/wt.enterprise.URLProcessor/URLTemplateAction?u8&oid=OR%3Awt.workflow.engine.WfProcess
在&后面都被子加上了amp , 这是怎么回事?