【文件属性】:
文件名称:ab-testing:轻松进行AB测试
文件大小:17KB
文件格式:ZIP
更新时间:2021-05-02 09:36:49
JavaScript
测验
A / B测试变得容易。
给我买杯咖啡!
该项目在周末和空闲时间维护。 如果您觉得这很有用,请考虑给我买杯咖啡!
安装
npm install ab-testing
初始化
var ABTesting = require ( 'ab-testing' ) ;
var testObject = ABTesting . createTest ( 'firstTest' , // This name has to be unique across all the tests
[
{
name : 'A' ,
weight : 0.1 // If not set, the default value is 0.5
} ,
{
name : 'B' ,
weight : 0.9
}
] ) ;
分配组
// Given a unique ID of the us
【文件预览】:
ab-testing-master
----lib()
--------ab-testing.js(3KB)
----.travis.yml(36B)
----LICENSE(1KB)
----README.md(3KB)
----tests()
--------tests.js(7KB)
----.gitignore(606B)
----index.js(110B)
----package-lock.json(37KB)
----package.json(759B)