标签:url link port nim ref meta type charset imu
<!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> | |
<div id="nativeShare"></div> | |
<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(‘nativeShare‘,config); | |
</script> | |
</body> | |
</html> |
https://github.com/JefferyWang/nativeShare.js
https://github.com/JefferyWang/nativeShare.js/blob/master/demo.html
目前仅支持 uc和QQ浏览器
标签:url link port nim ref meta type charset imu
原文地址:http://www.cnblogs.com/qq735675958/p/7147056.html