问题描述
有大神对能指点一下吗<%--新浪登录--%><scriptsrc="http://tjs.sjs.sinajs.cn/open/api/js/wb.js?appkey=568898243"type="text/javascript"charset="utf-8"></script><scripttype="text/javascript">$("#wb_btn").click(function(){if(WB2.checkLogin()==false){WB2.anyWhere(function(W){W.widget.connectButton({id:"wb_btn",type:'3,2',callback:{login:function(o){$.get("/Home/SubmitApiLogin?username="+o.id+"&nickname="+escape(o.screen_name),function(data){if($("#trutl").val()==""){window.parent.location.href="/Home/Index";}else{window.parent.location.href=$("#trutl").val();}});},logout:function(){//WB2.logout();//微博注销}}});});}});</script>
解决方案
解决方案二:
参考:
时间: 2024-10-21 20:23:25