1.1.1. 用户行为设置接口

客部

方法名称: behaviorSet

方法说明: 用户行为设置

参数说明:(“-”为子级标识)

参数位序号 参数名称 参数类型 参数说明 参数是否必须 如果是回调其回传参数
1 配置参数项 object 配置参数对象
- -completed function 获取信息的回调
success:'1'/'0'
js object
{success:'1',interactivePopDisabled: '1',bounces:'1'}
- -cpIncompatible function 环境没有实现此方法的回调
- -interactivePopDisabled string 禁止侧滑 ‘1’/'0'
- -bounces string 弹性效果'1'有弹性效果‘0’无弹性效果

调用样例:

CP.behaviorSet({
    completed: function(data){
        // data > {success:'1',interactivePopDisabled: '1'}
        CP.tools.writelog('behaviorSet', data);
    },
    cpIncompatible: function () {
         CP.tools.writelog('', '此环境不支持此方法');
    },
    interactivePopDisabled: '1',
    bounces: '1'
});
Copyright © 新媒体云服务平台 2019 all right reserved,powered by Gitbook该文件修订时间: 2023-02-01 10:36:23

results matching ""

    No results matching ""