Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
settings.php中JavaScript使用模板字符串
Browse files Browse the repository at this point in the history
  • Loading branch information
yuantuo666 committed Feb 17, 2021
1 parent f04da24 commit 8eabfe4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function AnalyseLoadmore() {
Swal.fire("正在加载,请稍等");
Swal.showLoading();
newpage = Number($("#AnalyseTable").attr("page")) + 1;
$.get("api.php?m=ADMINAPI&act=AnalyseGetTable&page=" + String(newpage), function(data, status) {
$.get(`api.php?m=ADMINAPI&act=AnalyseGetTable&page=${newpage}`, function(data, status) {
if (status == "success") {
$("#AnalyseTable").append(data);
$("#AnalyseTable").attr("page", newpage);
Expand Down Expand Up @@ -259,7 +259,7 @@ function SvipLoadmore() {
Swal.fire("正在加载,请稍等");
Swal.showLoading();
newpage = Number($("#SvipTable").attr("page")) + 1;
$.get("api.php?m=ADMINAPI&act=SvipGetTable&page=" + String(newpage), function(data, status) {
$.get(`api.php?m=ADMINAPI&act=SvipGetTable&page=${newpage}`, function(data, status) {
if (status == "success") {
$("#SvipTable").append(data);
$("#SvipTable").attr("page", newpage);
Expand Down Expand Up @@ -373,7 +373,7 @@ function IPLoadmore() {
Swal.fire("正在加载,请稍等");
Swal.showLoading();
newpage = Number($("#IPTable").attr("page")) + 1;
$.get("api.php?m=ADMINAPI&act=IPGetTable&page=" + String(newpage), function(data, status) {
$.get(`api.php?m=ADMINAPI&act=IPGetTable&page=${newpage}`, function(data, status) {
if (status == "success") {
$("#IPTable").append(data);
$("#IPTable").attr("page", newpage);
Expand Down Expand Up @@ -643,7 +643,7 @@ function IPLoadmore() {
function DeleteById(Type, Id) {
Swal.fire("正在提交删除请求,请稍等");
Swal.showLoading();
$.get("api.php?m=ADMINAPI&act=DeleteById&id=" + String(Id) + "&type=" + Type, function(data, status) {
$.get(`api.php?m=ADMINAPI&act=DeleteById&id=${Id}&type=${Type}`, function(data, status) {
if (status == "success") {
var json = JSON.parse(data);
Swal.fire(json.msg);
Expand Down

0 comments on commit 8eabfe4

Please sign in to comment.