$(document).ready(function () { var obj = document.getElementById('artWrap'); var txt = obj.innerHTML; txt = txt.replace(new RegExp("\\/manage/manage", "g"), "/manage"); obj.innerHTML = txt; });
搜索 function redirect(){ window.open("/manage/search.aspx?key="+$("#keywords").val()); } $("#keywords").blur(function(){ if($(this).val()==""){ $(this).val("电动车"); }}).blur();
var pageindex = 0; function loadXMLDoc(fhstring) { var xmlhttp; if (fhstring == "+") { pageindex++; } else { pageindex--; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } ajaxList(pageindex); function ajaxList(num){ xmlhttp.onreadystatechange = function () { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { document.getElementById("newslist").innerHTML = xmlhttp.responseText; } } //$("#newslist").showdata("/ajaxArcList.aspx?lb=" + lb + "&pagesize=10&pageindex=" + num); var url = "/manage/ajaxArcList.aspx?lb=" + 22 + "&pagesize=10&pageindex=" + num; xmlhttp.open("POST", url , true); xmlhttp.send(); } function GetQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; } }
进入车型库找车更方便