-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.html
More file actions
26 lines (25 loc) · 865 Bytes
/
index.html
File metadata and controls
26 lines (25 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>nativeShare.js Demo</title>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<meta name="description" content="demo" />
<script src="./nativeShare.js"></script>
<link rel="stylesheet" href="./nativeShare.css"/>
</head>
<body>
<buttom id="nativeShare1">点击我调用分享</buttom>
<script>
var config = {
url:'http://blog.wangjunfeng.com',
title:'王俊锋的个人博客',
desc:'王俊锋的个人博客',
img:'http://www.wangjunfeng.com/img/face.jpg',
img_title:'王俊锋的个人博客',
from:'王俊锋的博客'
};
var share_obj = new nativeShare('nativeShare1',config);
</script>
</body>
</html>