Url address problems-php Tutorial

Source: Internet
Author: User
Url address problems .... the userindex & nbsp; retrieved from the database is changed to u7528u6237u5217u8868JScriptcodefunctionGetMenu (act) {$. ajax ({url: & quot; index. phpIndexGetAcessList & quot ....

User/index retrieved from the database

Changed

\ U7528 \ u6237 \ u5217 \ u8868


JScript code
    function GetMenu(act){      $.ajax({          url:"/index.php/Index/GetAcessList",          dataType:"json",          type:"POST",          data:"act="+act,          success:function(json){              var html="";              for(var i=0;i
  
   ";                  html+="
   

"; for(var j=0;j '; } html+="

"; html+="

"; 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 = ""; return s;}


What alert pops up is that it is correctly added to the addTab.

------ Solution --------------------
:-)
------ Solution --------------------
Congratulations!
------ Solution --------------------
Solution to LZ sharing !!!!
------ Solution --------------------
Is it encoding problems? Share ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.