You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*/AV.init=function(){for(var_len=arguments.length,options=Array(_len),_key=0;_key<_len;_key++){options[_key]=arguments[_key];}switch(options.length){case1:if((typeofoptions==="undefined"?"undefined":_typeof(options))==='object'){if(!AV._config.isNode&&options.masterKey){thrownewError('AV.init(): Master Key is only used in Node.js.');}initialize(options[0].appId,options[0].appKey,options[0].masterKey);}else{thrownewError('AV.init(): Parameter is not correct.');}break;// 兼容旧版本的初始化方法
2841
-
case2:case3:if(!AV._config.isNode&&options.length===3){thrownewError('AV.init(): Master Key is only used in Node.js.');}initialize.apply(undefined,options);break;}};// If we're running in node.js, allow using the master key.
2837
+
* Call this method first to set up your authentication tokens for AV.
2838
+
* You can get your app keys from the LeanCloud dashboard on http://leancloud.cn .
2839
+
* @function AV.init
2840
+
* @param args initialize options.
2841
+
* @param args.appId application id
2842
+
* @param args.appKey application key
2843
+
* @param args.masterKey application master key
2844
+
*/AV.init=function(){switch(arguments.length){case1:varoptions=arguments.length<=0?undefined:arguments[0];if((typeofoptions==="undefined"?"undefined":_typeof(options))==='object'){if(!AV._config.isNode&&options.masterKey){thrownewError('AV.init(): Master Key is only used in Node.js.');}initialize(options.appId,options.appKey,options.masterKey);}else{thrownewError('AV.init(): Parameter is not correct.');}break;// 兼容旧版本的初始化方法
2845
+
case2:case3:if(!AV._config.isNode&&arguments.length===3){thrownewError('AV.init(): Master Key is only used in Node.js.');}initialize.apply(undefined,arguments);break;}};// If we're running in node.js, allow using the master key.
2842
2846
if(AV._config.isNode){AV.Cloud=AV.Cloud||{};/**
2843
2847
* Switches the AVOSCloud SDK to using the Master key. The Master key grants
2844
2848
* priveleged access to the data in AVOSCloud and can be used to bypass ACLs and
0 commit comments