猿问

老师,为何下面这段代码,点击“设为首页”后,提示框是乱码???

<%@ page language="java" contentType="text/html; charset=utf-8"

    pageEncoding="utf-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

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

<link rel="stylesheet" type="text/css" href="second1.css">

<script type="text/javascript" src="setHomeSetFav.js" charset="utf-8"></script>

<title>槿漫轩</title>

</head>

<body>

<body>

<div class="top_bg">

<div class="top_content">

<ul>

      <li><a href="#">联系我们</a></li>

      <li><a onclick="AddFavorite(window.location,document.title)" href="javascript:void(0)">加入收藏</a></li>

      <li><a onclick="SetHome(window.location)" href="javascript:void(0)">设为首页</a></li>

    </ul>

</div>

</div>

</body>

</html>


Copy_Er木子火曰立
浏览 1420回答 1
1回答

慕粉3815819

点击并没有提示框,你代码贴全了嘛
随时随地看视频慕课网APP
我要回答