1 Star 1 Fork 1

gujiejing / WEBWMS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
searchasn.js 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
wisdom 提交于 2017-11-03 23:31 . upupup new alll
window.onload=initPage;
function initPage(){
ahrefs=document.getElementById("showSearchResult").getElementsByTagName("a");
console.log(ahrefs.length);
for(var i=0;i<ahrefs.length;i++){
aaa=ahrefs[i];
aaa.onclick=function(){
var id1 = this.id;
console.log(id1);
showASNDetail(id1);
}
}
}
function showASNDetail(id1){
console.log("showASNDetail:"+id1);
createShowASNDetail=createRequest();
if(createShowASNDetail==null){
alert("Unable to create request");
}else{
var url="searchasnf.php?id="+id1+"&show=true";
createShowASNDetail.onreadystatechange=showASNDetail1;
createShowASNDetail.open('GET',url,true);
createShowASNDetail.send(null);
}
}
function showASNDetail1(){
if(createShowASNDetail.readyState==4){
if(createShowASNDetail.status==200){
console.log("responseText->"+createShowASNDetail.responseText);
var respText=eval("("+ createShowASNDetail.responseText +")");
if(respText.result==0){
alert("错误,原因为:"+respText.respText);
}else if(respText.result==1){
var table1 = respText.table;
$("#showDetail").html(table1);
$(function() {
$( "#showDetail" ).dialog({
width: 1050,
modal: true
});
});
}
}
}
}
PHP
1
https://gitee.com/laotou99_admin/WEBWMS.git
git@gitee.com:laotou99_admin/WEBWMS.git
laotou99_admin
WEBWMS
WEBWMS
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891