adhoc-sdk
v4.27.1
Published
Adhoc JS SDK
Downloads
64
Readme
adhoc js sdk
Installation
In Your Project:
require('adhoc-sdk');
window.adhoc('init', {
appKey: 'your appkey'
});
// get you experiment flags
window.adhoc('getFlags', function(flags){
var flag = flags.get('flagName');
});
// track a stat
window.adhoc('track', 'statName', 1, function(err){
if(err){
//i don't know if you do something cool....
}
//do something after tracker
});
发布新版本:
"build": "node build/build.js",
项目启动
npm run start