第138章 請多指教

<!doctypehtml>登錄-紅薯中文網<!--頂部開始-->

登錄

<!--頂部結束-->{{ifislogin}}{{else}}{{/if}}<!--內容開始-->.otherloginli{width:25%;}<!--其他登錄開始-->

您使用的uc、百度瀏覽器暫不支持第三方賬號登錄,請使用其他瀏覽器訪問

通過第三方賬號登錄

微信登錄

qq登錄

百度登錄

微博登錄

支付寶登錄<!--其他登錄結束--><!--登錄開始-->

用手機號或紅薯中文網賬號登錄<!--

-->登錄即代表同意紅薯中文網服務條款<!--登錄結束--><!--內容結束--><!--底開始--><!--底開始-->.qiehuan{padding:10px0;}.qiehuana{color:#666666;margin-right:25px;font-size:12px;}.qiehuana.active{color:#f00;}

增值電信業務經營許可證:蘇b2-20170125<!--底結束-->

{{ifsex_flag=='nv'}}

微信公眾號

微信內可長按識別

或在微信公眾號裡搜索"紅薯中文網"{{else}}

微信公眾號

微信內可長按識別

或在微信公眾號裡搜索"熱血刊"{{/if}}

增值電信業務經營許可證:蘇b2-20170125<!--底結束--><!--代碼開始-->varsex_flag='nv';var_bid='';var_chapterid='';

//格式化參數functionformatparams(data){vararr=[];for(varnameindata){arr.push(encodeuricomponent(name)+"="+encodeuricomponent(data[name]));}arr.push(("v="+math.random()).replace(".",""));returnarr.join("&");}window.onerror=function(errormessage,scripturi,linenumber,columnnumber,errorobj){//這裡用原生的方法去截獲if(!scripturi&&!linenumber&&!columnnumber){returntrue;}varurl="/jslog/index.html";try{//1.創建xmlhttprequest對象//這是xmlhttpreuquest對象無部使用中最複雜的一步//需要針對ie和其他類型的瀏覽器建立這個對象的不同方式寫不同的代碼varxmlhttprequest;if(window.xmlhttprequest){//針對firefox,mozillar,opera,safari,ie7,ie8xmlhttprequest=newxmlhttprequest();//針對某些特定版本的mozillar瀏覽器的bug進行修正if(xmlhttprequest.overridemimetype){xmlhttprequest.overridemimetype("text/xml");}}elseif(window.activexobject){//針對ie6,ie5.5,ie5//兩個可以用於創建xmlhttprequest對象的控件名稱,保存在一個js的數組中//排在前面的版本較新varactivexname=["msxml2.xmlhttp","microsoft.xmlhttp"];for(vari=0;i=300||xmlhttprequest.status-1||navigator.useragent.indexof("baidu")!=-1){$('#liulanqi').show();}<!--代碼結束--><!--微信jssdk-->varua=window.navigator.useragent.tolowercase();varurl=parseurl('','restsajax/getwechatcfg','do');if(ua.match(/micromessenger/i)=='micromessenger'){if(typeof(weixinjsbridge)=="undefined"){if(document.addeventlistener){document.addeventlistener('weixinjsbridgeready',onbridgeready,false);}elseif(document.attachevent){document.attachevent('weixinjsbridgeready',onbridgeready);document.attachevent('onweixinjsbridgeready',onbridgeready);}}else{onbridgeready();}functiononbridgeready(){$.ajax({url:url,type:"post",data:{url:'m.hongshu.com/userlogin.do?fu=https%3a%2f%2fm.hongshu.com%2fvip%2f114958%2f2108405.do'},datatype:'json',success:function(json){if(json.hasownproperty('appid')&&json.appid){wx.config(json);var_href_=location.href;if(_href_.indexof('?')>-1){_href_=_href_+'&sid=772'}else{_href_=_href_+'?sid=772'}wx.ready(function(res){varsharedata={title:'紅薯中文網',desc:'紅薯中文網',link:_href_,//分享鏈接imgurl:'img2.hongshu.com/public/client/html5/1.3.5/images/shareicon.png',//分享圖標type:'',//分享類型,music、video或link,不填默認為linkdataurl:'',//如果type是music或video,則要提供數據鏈接,默認為空success:function(){//用戶確認分享後執行的回調函數$.ajax({url:"/choujiangajax/getfenxiang.do",type:"post",data:'',success:function(json){if(json.url){hg_gotourl(json.url);}else{window.location.reload();}}})},cancel:function(){//用戶取消分享後執行的回調函數console.log('cancel');}};wx.onmenushareappmessage(sharedata);wx.onmenushareappmessage(sharedata);wx.onmenushareqq(sharedata);wx.onmenushareweibo(sharedata);wx.onmenushareqzone(sharedata);//分享到朋友圈時只有標題,所這裡拼接一下varcopy_sharedate={};$.extend(copy_sharedate,sharedata);copy_sharedate.title=copy_sharedate.title+""+copy_sharedate.desc;wx.onmenusharetimeline(copy_sharedate);});wx.error(function(res){//hg_toast(res.errmsg);//打印錯誤消息。及把debug:false,設置為debug:ture就可以直接在網頁上看到彈出的錯誤提示});}}});}}<!--微信jssdk-->