解决方案 »
- SSH开发环境的搭建及整合
- myeclipse新建一个页面,出了点小问题,花大家10秒钟帮忙看看
- webwork在使用input的value属性嵌套标签时遇到的问题
- 怎么实现鼠标点到哪里图片就到哪里
- 作为变量的运算符
- 开发BBS系统,要注意到哪些问题?
- 如何将jsp生成的html文件,显示在网页中?
- spring报出NoSuchMessageException
- javabean是什么?
- 紧急问题!!在线等候,今天一定要搞出来
- 求助权限设计的问题
- Spring MVC 报异常:File "/WEB-INF/page/main/index/session.jsp" not found
但是这样
var image = myCanvas.toDataURL("image/png").replace("image/png", "image/octet-stream");
window.shareUrl=image;
share();
function share(){
//d指的是window
(function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['&title=',e(window.sharetitle),'&appkey=2924220432','&pic=',e(window.shareUrl)].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent);
}
不可以,直接微博分享的页面都打不开了。。如果我把window.shareUrl=“网上任意的图片地址”,就可以显示。。我在想是不是toDataURL返回图片64位编码的问题?