Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
footsen
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6930db73
authored
3 years ago
by
agan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
使用原生请求判断响应头
parent
f9bd2a09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
b/download.html
b/download.html
View file @
6930db73
...
@@ -378,7 +378,18 @@
...
@@ -378,7 +378,18 @@
var
url
=
'https://big.bgp.ourpow.com/apk/nf/Release-'
+
andoridData
+
'.apk'
;
var
url
=
'https://big.bgp.ourpow.com/apk/nf/Release-'
+
andoridData
+
'.apk'
;
window
.
location
.
href
=
url
;
var
xhr
=
new
XMLHttpRequest
();
xhr
.
open
(
'GET'
,
url
);
xhr
.
send
();
xhr
.
onreadystatechange
=
function
()
{
if
(
xhr
.
status
==
200
)
{
xhr
.
abort
();
window
.
location
.
href
=
url
;
}
else
if
(
xhr
.
status
==
404
)
{
window
.
location
.
href
=
'https://big.bgp.ourpow.com/apk/nf/Release-ftsB.apk'
;
}
}
// window.location.href = url;
// var mAjax = $.ajax({
// var mAjax = $.ajax({
// url: url,
// url: url,
// statusCode: {
// statusCode: {
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment