Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
Static
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
f2017393
authored
a year ago
by
agan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
f06789e3
master
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
js/webAppComm.js
js/webAppComm.js
View file @
f2017393
...
...
@@ -132,8 +132,8 @@ function webAppComm() {
'lang6'
:
'Cerrar página'
,
}
];
this
.
urlData
=
url_get_params
(
location
.
href
);
this
.
langType
=
url_get_params
(
location
.
href
)
.
lang
;
this
.
urlData
=
this
.
url_get_params
(
location
.
href
);
this
.
langType
=
this
.
urlData
.
lang
;
}
//分享
...
...
@@ -350,6 +350,19 @@ webAppComm.prototype.refreshWeb = function (callback) {
}
webAppComm
.
prototype
.
url_get_params
=
function
(
url_path
)
{
var
url
=
url_path
;
var
theRequest
=
new
Object
();
if
(
url
.
indexOf
(
"?"
)
!=
-
1
)
{
var
str
=
url
.
substr
(
url
.
indexOf
(
"?"
)
+
1
);
strs
=
str
.
split
(
"&"
);
for
(
var
i
=
0
;
i
<
strs
.
length
;
i
++
)
{
theRequest
[
strs
[
i
].
split
(
"="
)[
0
]]
=
unescape
(
strs
[
i
].
split
(
"="
)[
1
]);
}
}
return
theRequest
;
}
function
appCollaboration
(
msg
)
{
var
sUserAgent
=
navigator
.
userAgent
.
toLowerCase
();
...
...
@@ -370,17 +383,6 @@ function appCollaboration(msg) {
}
}
function
url_get_params
(
url_path
)
{
var
url
=
url_path
;
var
theRequest
=
new
Object
();
if
(
url
.
indexOf
(
"?"
)
!=
-
1
)
{
var
str
=
url
.
substr
(
url
.
indexOf
(
"?"
)
+
1
);
strs
=
str
.
split
(
"&"
);
for
(
var
i
=
0
;
i
<
strs
.
length
;
i
++
)
{
theRequest
[
strs
[
i
].
split
(
"="
)[
0
]]
=
unescape
(
strs
[
i
].
split
(
"="
)[
1
]);
}
}
return
theRequest
;
}
window
.
$firefly
=
new
webAppComm
();
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