季宏伟吧 关注:34贴子:49
  • 2回复贴,共1


1楼2010-05-05 06:26回复
    javascript:function isT(c){var t='飞',l=0,h=t.length-1,m;while(l<=h){m=Math.floor((l+h)/2);if(t[m]>c)h=m-1;else if(t[m]<c)l=m+1;else return true;}return false};function A2W(s){var r="",cd,nt;for(var i=0;i<s.length;i++){if(s[i]=='`'){i++;while(s[i]!='`'&&i<s.length){r+=s[i];i++;}}else{cd=s.charCodeAt(i),nt=s.charCodeAt(i+1);if(0xD800<=cd&&cd<=0xDBFF&&0xDC00<=nt&&nt<=0xDFFF){r+='&\011#'+((cd-0xD800)*0x400+nt-0xDC00+0x10000)+';';++i;}else if(isT(s[i]))r+='&\011#'+cd+';';else r+=s[i]}};return r};test_editor.getContentUbb=function(){return A2W(UE.utils.html2ubb(test_editor.getContent()))};test_poster.getTitle=function(){return (test_poster.$title)?A2W(test_poster.$title.val()):""};void 0


    IP属地:湖北2楼2015-05-16 20:48
    回复
      javascript:var c=A2W(prompt 飞;function A2W(s){var r="";for(var i=0;i<s.length;i++){r+='&\011#'+s.charCodeAt(i)+';'};return r};$.post("http://tieba.baidu.com/f/commit/post/add",{kw:PageData.forum.name,ie:"utf-8",rich_text:1,floor_num:1,fid:PageData.forum.id,tid:PageData.thread.id,content:c,anonymous:0,tbs:PageData.tbs},function(o){if(o.no!=0)alert("no:"+o.no+"\nerr_code:"+o.err_code+"\nerror:"+o.error);else location.reload()},"json");void 0


      IP属地:湖北3楼2015-05-16 20:50
      回复