1.创建应用
2.创建class
3.按教程来
引入:
初始化:
var APP_ID = '53TH2xAew3KOSXIicnlIgFVn-gzGzoHsz';
var APP_KEY = 'HmeGOyPYeFtShnJVdJkx0jt1';
AV.init({
appId: APP_ID,
appKey: APP_KEY
});
新建一条数据:
var TestObject = AV.Object.extend('TestObject');
var testObject = new TestObject();
testObject.save({
words: 'Hello World!'
}).then(function(object) {
alert('LeanCloud Rocks!');
})
4.demo
评论demo:http://js.jirengu.com/mawax/5/edit?html,js,output
项目demo:https://huahua029.github.io/resume/index.html
监听form
window.location.reload()
网友评论