Coder Social home page Coder Social logo

bmob-js-sdk's Introduction

Bmob Js SDK

快速入门

不知道如何使用Bmob JS SDK的朋友可以移步查看我们为大家准备的快速入门文档:http://docs.bmob.cn/android/faststart/index.html?menukey=fast_start&key=start_android

源码说明

这个Repo中主要包含了bmob.jsbmobSocketIo.js两个文件和对应的压缩版。其中,bmob.js实现了数据服务、文件服务(包含图片服务)、用户服务、推送服务、云端代码、ACL和角色管理等功能,bmobSocketIo.js实现了实时数据的同步服务。

目录"test"是测试文件。

目录"doc_faststart"是快速入门文档。

目录"doc_develop"是详细开发文档。

Bmob官方信息

官方网址:http://www.bmob.cn

社区:http://community.bmob.cn/forum.php

技术邮箱:[email protected]

bmob-js-sdk's People

Contributors

heshaoyue avatar newjueqi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bmob-js-sdk's Issues

bmob-js-sdk run in native system, localStorage is undefine

when I run cocos2d-js in android , logcat print Bmob.localStorage is undefine. But when I use LeanCloud js SDK, it work well.

Then I found that the bug is the global var localStorage in bmob.js is undefine when run in the native system.

So, I try to require something, but another error "require is undefine".

Finally, I define a global var in the begin of bmob.js as below. And then it work when run in the Android. (cc.sys.isNative and cc.sys.localStorage are the API of cocos2d-js).

try{
  if(cc.sys.isNative){
    var localStorage = cc.sys.localStorage;
  }
} catch(error) {

}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.