0
我有以下脚本,它从我的Intranet主页抓取所有内容并将其显示在页面上。
我想知道,是否有可能在我的主页上获得此元素<div id="username">my.username</div>
内的值?
目前代码:
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
</head>
<script type="text/javascript">
$.get('http://intranet', function(data){
$(data).appendTo(document.body);
//$('#username').attr('id')
});
</script>
是里面的数据的'#username'标签? –
尝试使用URL''http:// intranet#username'' – Satpal
为什么不去iframe和src –