Socket
Socket
Sign inDemoInstall

markor-olive

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    markor-olive

这是一个js版本的工具库,依赖jQuery


Version published
Maintainers
1
Install size
344 kB
Created

Readme

Source

olive

这是一个js版本的工具库,依赖jQuery

Usage:

  • 使用时引入path/dist/util.js
  • util.js会创建一个全局util,直接调用util里面的方法

如何引入

  • 开发环境,http://192.168.1.57/olive/dist/util-[版本号].min.js

使用示例

<script src="http://192.168.1.57/olive/dist/util-0.1.0.min.js"></script>
var ginkgo = util.GetGinkgo({
            brand: 'zest',
            key: '90cff53bb6fcc29f6ebf9ad0221fa26f',
            duration: 1,   //间隔多久发送一次埋点请求,单位: 秒
            addr: 'http://192.168.1.57/orange/src/api.php',
            failTime: 10    //用户多久没有操作后认定此次对话已终止?单位: 秒
        });
        $('#sendBtn').click(function(){
            var data = $('#msgIpt').val();
            var tag = $('#tag').val() || '';
            var session = $('#session').val() || '';
            var userid = $('#userid').val() || '';
            ginkgo.send({
                'tag':  tag,
                'session': session,
                'userid': userid,
                'data': data
            });
        });

FAQs

Last updated on 18 May 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc