<!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('jMQY8EjyS0TfdTP7BjKqpbMJ-gzGzoHsz',
'Po6g5uCHqCAlXLERUjCdpafk'); //id,key
var helloworld = AV.Object.extend("HelloWorld") //定义
var query = new AV.Query(helloworld) // 定义数据查询
query.equalTo('baas','newleancloud') //查询条件
query.destroyAll({ //删除记录
success: function(){
document.write('数据成功删除');
},
error: function(){
doucment.write('数据删除失败');
}
})
</script>
</body>
</html>
网友评论