<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<script src="https://cdn1.lncld.net/static/js/av-mini-0.6.4.js"></script>
<script>
AV.initialize('id-gzGzoHsz',
'key'); //id,key
var helloworld = AV.Object.extend("HelloWorld") //定义
var query = new AV.Query(helloworld) // 定义数据查询
query.get('5afbcf5e7f6fd3188a43179d', { //objextid
success: function(post) {
post.set('baas','newleancloud');
post.save();
var data = post.get('baas');
document.write('baas服务名:' + data)
},
error: function(error) {
document.write('读取错误');
}
})
</script>
</body>
</html>
网友评论