Java为什么a标签的父节点获取不到" /> Java为什么a标签的父节点获取不到 - 网页学习体会" />

Java为什么a标签的父节点获取不到

<a href=Java为什么a标签的父节点获取不到" src="/default/index/img?u=aHR0cHM6Ly9wMi5waXFzZWxzLmNvbS9wcmV2aWV3LzUvNDE5LzYwMi9kcmF3aW5nLXdhbGwtc3RyZWV0LWFydC1ncmFmZml0aS5qcGc=&w=245&h=&w=700"/>

<script>

function goSearch(event) {
//var select = $('#keyInput').val($(event).attr("name"));
var hotkey = $(event).attr("name");
var inputkey=$('#keyInput').val();
var searchUrl = "http://localhost:8959/CampusPostSearch.aspx?t=";
searchUrl = searchUrl + "&zw=";
searchUrl = searchUrl + "&cs=";
searchUrl = searchUrl + "&we=1001"; //bys站点只搜索工作经验为'应届生'的职位(1001)
if (hotkey == undefined) var searchKey = inputkey;
else var searchKey = hotkey;
//if (searchKey == "请输入职位或公司关键字") searchKey = "";
searchUrl = searchUrl + "&qt=" + encodeURI(searchKey);
window.location.href = searchUrl;
//window.open(searchUrl);
}

  }

</script>
<div name="d1"><a >