$(function() { loginStatus();//判断个人是否登录 $(document).scroll(function() { var top = $(document).scrollTop(); if(top != 0) { $(".searchbox").fadeIn(1000); } else { $(".searchbox").fadeOut(1000); } }); var newc = GetQueryString("lookFor"); if(newc == 0 || newc == "") { var c = 0; } else { var c = 1; // $(".lookwho option[value='1']").attr("selected","selected"); $("#div_select").text("找资源"); } /* * var lookFor2 = 0; $("#lookFor2 ul li").on("click",function(){ * lookFor2=$(this).index(); }); //enter绑定时间 * $("#searchContent").keydown(function(e){ if(e.which==13) { synContent(2); * synContent(1); var searchContent = $("#searchContent").val(); if(lookFor2 = * 1){ $("#div_select").text("找资源"); location.href = * "search.html?searchContent=" + encodeURI(searchContent); } } * }) */ var userid = $.cookie("userid"); var subject; var subb = $.trim(GetQueryString("subject")); var industry; var pageSize; var sub = "SUBJECT"; var indu = "INDUSTRY"; var address = $("#address .colorbg")[0].title; $("#searchContent").val(GetQueryString("searchContent")); $("#hsearchContent").val(GetQueryString("searchContent")); var key = $("#searchContent").val(); var getData = function(key, subject, industry, pageSize, pageNo, isbind, add) { if(c == 0) { $ .ajax({ "url": "/ajax/professor/pqBaseInfo", "type": "GET", "data": { "key": key, "subject": subject, "industry": industry, "pageSize": pageSize, "pageNo": pageNo, "address": add }, "contentType": "application/x-www-form-urlencoded", "success": function($data) { if($data.success) { // console.log($data); $("#professorList").html(""); for(var i = 0; i < $data.data.data.length; i++) { // 创建HTML标签 var dataHtml = "
学术领域:" + $data.data.data[i].subject + "
"; } dataHtml += "应用行业:" + $data.data.data[i].industry + "
"; } if($data.data.data[i].researchAreas.length) { dataHtml += "研究方向:" for(var m = 0; m < $data.data.data[i].researchAreas.length; m++) { dataHtml += $data.data.data[i].researchAreas[m].caption; if(m<$data.data.data[i].researchAreas.length-1){ dataHtml += " , " } } dataHtml += "
"; } dataHtml += "学术领域:' + $da[i].subject + '
应用行业:' + $da[i].industry + '
应用用途:' + $da[i].supportedServices + '