久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網
      最全最豐富的資訊網站

      在php頁面中執(zhí)行alert()函數時彈出亂碼窗口怎么辦

      在php頁面中執(zhí)行alert()函數時彈出亂碼窗口怎么辦

      問題描述:

      PHP頁面的編碼方式是utf-8,用如下代碼輸出時彈出亂碼窗口。

      echo "<script type='text/javascript'>alert('已全部清除!');script>";

      解決方法:

      因為有alert()輸出中文到瀏覽器,所以一定要在網頁中指定編碼方式為UTF-8,即

      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

      注意:如果PHP頁面編碼方式是gb2312,則不需要添加

      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

      贊(0)
      分享到: 更多 (0)
      網站地圖   滬ICP備18035694號-2    滬公網安備31011702889846號