Score
0
Watch 50 Star 87 Fork 36

ThinkPHP / oschina-apicloud-appJavaScriptMIT

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
基于 APICloud 的 OSChina 客户端 spread retract

Clone or download
bind.html 642 Bytes
Copy Edit Web IDE 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>

Comment ( 0 )

Sign in for post a comment

JavaScript
1
https://gitee.com/ThinkPHP/oschina-apicloud-app.git
git@gitee.com:ThinkPHP/oschina-apicloud-app.git
ThinkPHP
oschina-apicloud-app
oschina-apicloud-app
master

Help Search

191139_cd20d5fd_5186603 191143_ebef6f8d_5186603