zoukankan      html  css  js  c++  java
  • 各种分享api

    function shareApi(target, img, content, url) {
    switch (target) {
    case 0:
    return "http://v.t.sina.com.cn/share/share.php?pic=" + img + "&title=" + content + "&url=" + url + "&rcontent=";
    case 1:
    return "http://v.t.qq.com/share/share.php?title=" + content + "&pic=" + img + "&url=" + url;
    case 2:
    return "http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?title=" + content + "&pics=" + img + "&url=" + url;
    case 3:
    return "http://share.renren.com/share/buttonshare.do?title=" + content + "&link=" + url + "&rcontent=";
    case 4:
    return "http://www.kaixin001.com/repaste/share.php?rtitle=" + content + "&rurl=" + url + "&rcontent=";
    case 5:
    return "http://www.douban.com/recommend/?title=" + content + "&url=" + url + "&rcontent=";
    default:
    return "http://v.t.sina.com.cn/share/share.php?pic=" + img + "&title=" + content + "&url=" + url + "&rcontent=";
    }
    }

    新浪微博 腾讯微博 qq空间 人人 开心 豆瓣

    使用: window.open(url,"_blank","scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes")

  • 相关阅读:
    将博客搬至CSDN
    NOIP2018酱油记
    CF 1039D You Are Given a Tree && CF1059E Split the Tree 的贪心解法
    最大异或子序列问题
    UVa 10615
    UVa 1057
    用树状数组代替平衡树
    [CTSC2008]图腾totem
    POI2008 题解
    简便思路的题目别人的做法
  • 原文地址:https://www.cnblogs.com/weberypf/p/2344381.html
Copyright © 2011-2022 走看看