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")

  • 相关阅读:
    HDU 1002 A + B Problem II
    leetcode 42.接雨水
    无向图 及其术语
    C++优先队列详解
    C++优先队列详解
    最短路
    最短路
    CF DP练习题
    CF DP练习题
    干货
  • 原文地址:https://www.cnblogs.com/weberypf/p/2344381.html
Copyright © 2011-2022 走看看