本站正在紧张进行建设中!
如果您希望参与编辑,不要忘记加入我们的官方Q群哦~
编辑帮助:目录 • BWIKI反馈留言板
此处公告通常对读者进行申明或对该WIKI某些规则进行公告,请在确认后修改本通告。本WIKI编辑权限开放,欢迎收藏起来防止迷路,也希望有爱的小伙伴和我们一起编辑哟~
Widget:游戏经验查询
<input class="form-control" type="text" id="uid" maxlength=64 data-bind="value: Steam 64位ID">
<button class="dbd-section-normal section-wrap" type="button" onclick="getProfile()">查询</button>
<script> function getProfile() { $('#profile_info_list').children().remove();
$.ajax({ type: "GET", url: "https://api.dbd.mcxk.net/profile/steam?uid="+ $("#uid").val(), dataType: "json", success: function(json){ console.log(json); let killer_rank = json.find(x => x.key === "killer_rank")?.value; let survivor_rank = json.find(x => x.key === "survivor_rank")?.value;
$('#profile_info_list').append("
" ); $('#profile_info_list').append("
" ); $('#profile_info_list').append("
" ); $('#profile_info_list').append("
" ); $('#profile_info_list').append("
" ); $('#profile_info_list').append("
" ); $('#profile_info_list').append("
" ); } }); } console.log("加载完成"); </script>