Giter VIP home page Giter VIP logo

wxqqshare's Introduction

wxqqshare

JavaScript Style Guide

可用于微信,QQ客户端内容分享 (jsweixin-1.4.0)

安装

npm install wxqqshare --save-dev

or

yarn add wxqqshare

用法

import {share} from 'wxqqshare'

share({
    debug: false // 开启调试模式,调用的所有api的返回值会在客户端alert出来 默认为false
    title:'', // 标题 (必填)
    desc:'', // 描述 (必填)
    link:'',  // 链接 (必填)
    imgUrl:'', // 分享图 (必填)
    config:{
        appId: '', // 必填,公众号的唯一标识
        timestamp: '', // 必填,生成签名的时间戳
        nonceStr: '', // 必填,生成签名的随机串
        signature: '',// 必填,签名
    }
    //ajaxUrl:''   用于获取wx.config认证配置({appId,timestamp,nonceStr,signature})的接口请求地址 
})
微信分享config与ajaxUrl二者配置其一即可 ,若只做QQ客户端分享两者可忽略
分享到朋友圈

分享到朋友圈

分享到QQ空间

分享到QQ空间

分享到QQ

分享到QQ

分享到微信朋友

分享到微信朋友

ToDo

  • 支持1.4.0
  • 支持分享自由配置
  • 支持更多接口

wxqqshare's People

Contributors

halojk avatar halokitiboy avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.