gpt4 book ai didi

javascript - 无法获得简单的 javascript 提示符

转载 作者:行者123 更新时间:2023-11-28 05:07:46 26 4
gpt4 key购买 nike

<html>
<title>adsfasdf</title>
<head>
<link rel="stylesheet" type="text/css" href="style.css" >
<script type="text/javascript">
function editDates()
{
var dates = prompt("Fill in date(s) of absence", "Example: Travel 1/7 - 2/10");
}
</script>
</head>

<body bgcolor="#000088">



<table cellspacing="0" border="1" cellpadding="1" width="100%" height="100%">
<tr>
<td>name</td><td>

<form class="r1c1" method="link" action="index.html" onClick="editDates();">
<input type="button" name="submit" value="Edit"/></form>
</td>
</tr>
</table>
</body>

最佳答案

这个:

<script type=type="text/javascript">

应该是:

<script type="text/javascript">

示例: http://jsfiddle.net/hDpyN/

关于javascript - 无法获得简单的 javascript 提示符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4950297/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com