$.ajax({
url: "ServletStart?now=" + new Date().getTime(),
type: "GET",
data: {"start":start,"end":end},
success: function (data) {
//var data = JSON.parse( jsonObj );//解析json对象
tableVue.itemss=data;
},//响应成功后的回调函数
error: function () {
alert("出错啦...")
},//表示如果请求响应出现错误,会执行的回调函数
dataType: "json"//设置接受到的响应数据的格式
});
document.getElementById("Bi").style.display="none";
document.getElementById("Ai").style.display="none";
document.getElementById("Ci").style.display="block";
}
</script>
<script>
function Information(){
var Xid = $("#Xid").val();
var tableVue = new Vue({
el:"#information",
data:{
itemss:[]
}
});
$.ajax({
url: "ServletXian",
type: "GET",
data: {"Xid":Xid},
success: function (data) {
//var data = JSON.parse( jsonObj );//解析json对象
tableVue.itemss=data;
},//响应成功后的回调函数
error: function () {
alert("出错啦...")
},//表示如果请求响应出现错误,会执行的回调函数
dataType: "json"//设置接受到的响应数据的格式
});
document.getElementById("Bi").style.display="none";
document.getElementById("Ai").style.display="block";
}
</script>
<script>
function ZInformation(){
var Zname = $("#Zname").val();
var tableVue = new Vue({
el:"#Zinformation",
data:{
itemss:[]
}
});
$.ajax({
url: "ServletZhan",
type: "GET",
data: {"Zname":Zname},
success: function (data) {
//var data = JSON.parse( jsonObj );//解析json对象
tableVue.itemss=data;
},//响应成功后的回调函数
error: function () {
alert("出错啦...")
},//表示如果请求响应出现错误,会执行的回调函数
dataType: "json"//设置接受到的响应数据的格式
});
document.getElementById("Ai").style.display="none";
document.getElementById("Bi").style.display="block";
}
</script>