var idc1 = mini.get("idc1");
var idc2 = mini.get("idc2");
function SourceIdcOnChange(e){
var ip = idc1.getValue();
idc2.setValue("");
var url = "/sourceServlet?source="+ip;
idc2.url = url; // 刚开始我看api是用setUrl设置当前的url地址的,后来js直接报错说不认识,我不知道到底是官网的api有问题还是我自己写的有问题.
}
var idc1 = mini.get("idc1");
var idc2 = mini.get("idc2");
function SourceIdcOnChange(e){
var ip = idc1.getValue();
idc2.setValue("");
idc2.url = "sourceServlet?source="+ip;
alert(idc2.url);
}
function IDC_Search(){
var idc1 = mini.get("idc1").getValue();
var idc2 = mini.get("idc2").getValue();
var time = mini.get("time").getValue();
if(idc1 == "" || idc2 == "" || time == ""){
alert("查询条件不能为空!");
return;
}else{
var now = new Date();
var before = new Date(2012,6,24,00,00,00);