现在的位置: 首页 > 综合 > 正文

微博

2018年04月14日 ⁄ 综合 ⁄ 共 560字 ⁄ 字号 评论关闭

在工作中常常会碰到关于微博的问题,但是在很多情况下我们并不需要用户的数据也不需要用户一定转发该微博,那么有以下方法:

//新浪
function sina(){
	var url=encodeURIComponent(document.location.href);
	var conten=encodeURIComponent("content");
        window.open("http://v.t.sina.com.cn/share.php?appkey=APPKEY&url="+url+"&contnt="+conten+","_blank","width=615,height=505");
//腾讯
function tqq(){
	var url=encodeURIComponent(document.location.href);
	var conten=encodeURIComponent("content");
        window.open("http://v.t.qq.com/share.php?appkey=APPKEY&url="+url+"&contnt="+conten+","_blank","width=615,height=505");

/*****注释*****/

如果所传的内容中包含视频的地址,则新浪的会自动解析为视频

抱歉!评论已关闭.