Success: the function (data) {
//the mui (' # middlePopover). Popover (" hide ");
Layer. The close (ii);
If (queryType==='down') {
If (data. Code=="0" & amp; & Data. The data. The length & gt; 0 {
Var item=[];
Var temp.
Mui. Each (data. The data, the function (index, element) {
If (element. ExamPlanName==examName) {
The item=data. The data [index];
Temp=prepareBody (item)
$(" # examList "). The HTML (temp);
return false;
} else if (examName | | '& amp; & Element examPlanName!={examName)
Mui. Toast (' the exam does not exist! '{
Duration: the 'short',
Type: 'div'
})
}
//item=data. The data [index];
Temp=prepareBody (element);
$(" # examList "). The HTML (temp);
The console. The log (temp)
});
Temp call method is as follows:
The function prepareBody (item) {
//var temp=' ';
Var remainTime=item. ExamRemainTime;
Var min remainTime=split (" points ") [0];
Var SEC remainTime=split (" points ") [1]. The split (" seconds ") [0];
If (SEC. Length==1)
The SEC='0' + SEC;
RemainTime=min + ', '+ SEC;
Var ifRoom=item. IfRoom=='0'?" No test ":" test ";
Var temp='& lt; Div & gt; + '
'& lt; Div & gt; + '
'& lt; Div & gt; + '
'& lt; Div & gt;
+ '