初始化

This commit is contained in:
liut
2021-10-12 11:06:24 +08:00
commit ff0b4d5b12
1270 changed files with 405680 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
function getApi()
{
$.ajax({
type: "post",
url: "/file_share/pass",
data: {'id': $("#urlId").val(),'pass': $("#accessCode").val()},
dataType: "json",
success: function (data) {
if(data.status)
{
location.reload(); //刷新网页
}else{
$("#passCuowu").html(data.msg);
}
},
error: function (error) {
$("#passCuowu").html("API请求失败,请重试");
}
});
}
//搜索回车
$("#accessCode").keydown(function(e){
if(e.keyCode==13){
getApi();
}
});
$("#submitBtn").click(function(){
getApi();
});