• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

url地址有关问题,江湖救急

php 搞代码 4年前 (2022-01-23) 10次浏览 已收录 0个评论

url地址问题,江湖救急….

从数据库取的user/index

变成了

\u7528\u6237\u5217\u8868

JScript code

<!---ecms Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->  function GetMenu(act){      $.ajax({          url:"__APP__/Index/GetAcessList<span style="color:transparent">/本文来源gaodai#ma#com搞*!代#%^码网%</span><sub>搞代gaodaima码</sub>",          dataType:"json",          type:"POST",          data:"act="+act,          success:function(json){              var html="";              for(var i=0;i<json.rows.length;i++){                  html+="<div class='content'>";                  html+="<div class='foldingmenucontent'>";                  html+="<div class='foldingmenu menu2'><h2>"+json.rows[i].title+"</h2></div>";                  html+="<div class='foldingnavcontent conten'>";                  for(var j=0;j<json.rows[i].items.length;j++){                      var url=json.rows[i].items[j].durl;                      alert(url);                      html+='<li>'+json.rows[i].items[j].title+'</li>';                  }                  html+="</div>";                  html+="</div>";                  html+="</div>";               }                            $(".mainleft").html(html);          },          error:function(data){              alert(data.responseText);          }      });  }  function addTab(title, url) {    if (!$('#MainTab').tabs('exists', title)) {        $('#MainTab').tabs('add', {            id: url,            iconCls:'icon-edit',            title: title,            closable: true,            content: createFrame(url),            url: url,            fit: true        });    } else {        $('#MainTab').tabs('select', title);    }}function createFrame(url) {    var DocWidth = $(document).width();    var DocHight = $(document).height();    var s = "<iframe name='mainFrame' frameborder='0' scrolling='auto'  src='" + url + "' style='width:" + (DocWidth - 203) + "px;height:" + (DocHight - 109) + "px;'></iframe>";    return s;}

alert弹出来的是正确的 添加到addTab里面就变了

——解决方案——————–
接分 :-)
——解决方案——————–
恭喜啊 呵呵
——解决方案——————–
LZ 共享下解决方法啦!!!!
——解决方案——————–
是编码问题吗?求共享~


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:url地址有关问题,江湖救急
喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址