Heim >Backend-Entwicklung >PHP-Tutorial > url地址有关问题,江湖救急
url地址问题,江湖救急....
从数据库取的user/index
变成了
\u7528\u6237\u5217\u8868
<!-- 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>