require_once './function.php';
$json = do_post_request("http://localhost:9095/getusermessage");
$list = json_decode($json, true);
?>
W-M-Learningvar rootUrl = '';
等级:LV 0
require_once './function.php';
$json = do_post_request("http://localhost:9095/getuserhistory");
$list = json_decode($json, true);
foreach ($list as $item){
echo '
'.$item['listenName'].''.$item['listenScore'].'';
}
?>
require_once './function.php';
$json = do_post_request("http://localhost:9095/geterrorlisten");
$list = json_decode($json, true);
foreach ($list as $item){
echo '
'.$item['listenName'].''.$item['number'].''.$item['listenText'].''.$item['listenAnswer'].'';
}
?>
$("#nav-user").addClass('active');
function onload(){
// var list1=document.getElementById("list1");
// var list2=document.getElementById("list2");
$.get(
"http://localhost:9095/getuserstatus",
{
},
function(data)
{
if(data){
// alert("yes");
// $('.log-or-sign').hide();
// list1.style.display="none";
// list2.style.display="block";
}
else{
// alert("no");
}
}
);
}
window.reload=onload();
function name_load(){
var name=document.getElementById("name");
$.get(
"http://localhost:9095/getusername",
{
},
function(data){
name.innerText=data;
}
)
}
window.reload=name_load();
function email_load(){
var email=document.getElementById("email");
$.get(
"http://localhost:9095/getuseremail",
{
},
function(data){
email.innerText=data;
}
)
}
window.reload=email_load();
function city_load(){
var city=document.getElementById("city");
$.get(
"http://localhost:9095/getusercity",
{
},
function(data){
city.innerText=data;
}
)
}
window.reload=city_load();
一键复制
编辑
Web IDE
原始数据
按行查看
历史