$(function(){ // $(".weixinicon").attr("data-qrcode","http://www.xinhongru.com/qrcode/qrcode.php?content="+window.location.href); //测试 $(".weixinicon").attr("data-qrcode","/qrCode/Index.aspx?url="+window.location.href); //正式用这个,已经更新到后台 //分享 $(".pic_02").click(function () {//微博 var url = $(this).data("txt"); var url = window.location.href; var title = document.title; var op = "http://service.weibo.com/share/share.php?title=" + title + "&url=" + encodeURIComponent(url) + ""; window.open(op) }) // $(".pic_05").click(function () {//腾讯 // var url = $(this).data("txt"); // var url = window.location.href; // var title = document.title; // var op = "http://share.v.t.qq.com/index.php?title=" + title + "&url=" + encodeURIComponent(url) + ""; // window.open(op) // }) $(".pic_04").click(function () {//空间 var url = $(this).data("txt"); var url = window.location.href; var title = document.title; var op = "https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey??title=" + title + "&url=" + encodeURIComponent(url) + ""; window.open(op) }) $(".pic_03").click(function () {//QQ var url = $(this).data("txt"); var url = window.location.href; var title = document.title; var op = "http://connect.qq.com/widget/shareqq/index.html?url=" + encodeURIComponent(url) + ""; window.open(op); }) $(".weixinicon").click(function () {//微信 var url = $(this).attr("data-qrcode") //alert(url) var title = "" title += "
扫一扫
" title += "扫一扫
" title+="