Home  >  Article  >  Backend Development  >  url地址有关问题,江湖救急

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

WBOY
WBOYOriginal
2016-06-13 10:07:22811browse

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

从数据库取的user/index 

变成了

\u7528\u6237\u5217\u8868


JScript code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->  function GetMenu(act){      $.ajax({          url:"__APP__/Index/GetAcessList",          dataType:"json",          type:"POST",          data:"act="+act,          success:function(json){              var html="";              for(var i=0;i<json.rows.length html class="content">";                  html+="<div class="foldingmenucontent">";                  html+="<div class="foldingmenu menu2"><h2><a href="#">"+json.rows[i].title+"</a></h2></div>";                  html+="<div class="foldingnavcontent conten">";                  for(var j=0;j<json.rows var url="json.rows[i].items[j].durl;" alert html><a href="#" onclick="addTab('+json.rows[i].items[j].title+','+url+')">'+json.rows[i].items[j].title+'</a>';                  }                  html+="</json.rows>
</div>";                  html+="</div>";                  html+="";               }                            $(".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="%22%20+%20url%20+%20%22" style='width:" + (DocWidth - 203) + "px;height:" + (DocHight - 109) + "px;'></iframe>";    return s;}</json.rows.length>


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

------解决方案--------------------
接分 :-)
------解决方案--------------------
恭喜啊 呵呵
------解决方案--------------------
LZ 共享下解决方法啦!!!!
------解决方案--------------------
是编码问题吗?求共享~
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn