Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
store
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
html
store
Commits
5abd3d79
Commit
5abd3d79
authored
Jul 31, 2020
by
huangshu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码提交
parent
0b8ae474
Pipeline
#240
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
demo.html
demo.html
+44
-0
No files found.
demo.html
0 → 100644
View file @
5abd3d79
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html
class=
"no-js"
>
<!--<![endif]-->
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<title></title>
<meta
name=
"description"
content=
""
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<link
rel=
"stylesheet"
href=
""
>
</head>
<style>
body
{
width
:
500px
;
height
:
500px
;
}
</style>
<body>
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="#">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<iframe
id=
"mapPage"
width=
"100px"
height=
"100px"
frameborder=
0
src=
"https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=TXLBZ-DDILX-OTN4C-ZN7SH-AMZB2-4TBXJ&referer=myapp"
>
</iframe>
</body>
<script>
console
.
log
(
'
------1
'
)
window
.
addEventListener
(
'
message
'
,
function
(
event
)
{
// 接收位置信息,用户选择确认位置点后选点组件会触发该事件,回传用户的位置信息
var
loc
=
event
.
data
;
if
(
loc
&&
loc
.
module
==
'
locationPicker
'
)
{
//防止其他应用也会向该页面post信息,需判断module是否为'locationPicker'
console
.
log
(
'
location
'
,
loc
);
}
},
false
);
</script>
</html>
\ No newline at end of file
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