在网页中会有这样的代码!用xpath怎样获取其中的#document中的代码?
document.body.innerHTML;
document.documentElement.outerHTML;
document.getElementsById('id').html();
document.getElementsByName('name').html();
document.getElementsByTagName('tagName').html();
$("元素").html();
$(".name或class").html();
$('#id').html();
父窗体 获取 子窗体 window.parent.$("#ID").val();
子窗体 $("#ID").val();
使用jQuery
$(document).html();
可获取