1 Star 0 Fork 37

Star / oschina-apicloud-app

forked from ThinkPHP / oschina-apicloud-app 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
bind.html 642 Bytes
Copy Edit Raw Blame History
ThinkPHP authored 2015-04-03 01:09 . 添加回调页面
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>授权成功</title>
</head>
<body>
<h3>授权成功</h3>
</body>
<script>
apiready = function() {
api.closeWidget({
id: 'OSC',
retData: {code:getQueryString("code"), state:getQueryString("state")},
animation: {
type: 'flip',
subType: 'from_bottom',
duration: 500
}
});
}
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
}
</script>
</html>
JavaScript
1
https://gitee.com/freshjoan/oschina-apicloud-app.git
git@gitee.com:freshjoan/oschina-apicloud-app.git
freshjoan
oschina-apicloud-app
oschina-apicloud-app
master

Search