-
创建时间
17年9月21日
-
最后回复
17年9月25日
-
9
回复
-
3.2K
浏览
-
2
用户
我试了没问题
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>hello world</title>
<script src="https://unpkg.com/leancloud-realtime@4.0.0-alpha.1/dist/realtime.browser.min.js"></script>
<script type="text/javascript">
var realtime = new AV.Realtime({
appKey:'BcqPHgl7bUXnOlOLrAWiNBHj',
appId: 'VX0K8lYx0QmYeBeReabX3b7s-gzGzoHsz',
});
function helloworld() {
realtime.createIMClient().then(() => {
alert('LeanCloud works!!');
}, function(objec, error) {
alert(JSON.stringify(error.message || error));
});
}
</script>
</head>
<body>
age,your can click this button
<button onclick="helloworld()">click me!</button> to show a "hello world" message!
</body>
</html>
推荐主题
主题 | 分类 | 回复 | 浏览 | 活动 |
---|---|---|---|---|
某一个聊天室不能获取历史记录 | 实时通信 | 2 | 898 | 15-09-29 |
有没有人用LeanCloud安卓端做过语音消息连续播放的功能 | 实时通信 | 0 | 756 | 17-03-14 |
com.google.protobuf stack size 1036KB | 实时通信 | 4 | 2.1K | 18-07-2 |
jsSDK用户注册(signUp)时报600-无效的短信签名 | 实时通信 | 3 | 901 | 16-03-23 |
Android 同步AVIMConversation有问题。 | 实时通信 | 1 | 1.1K | 18-07-26 |