我想用一个按钮重置我的页面。
这是我的代码:
$(".reset").click(function () {
document.location.reload(true);
});
<button id="reset">RESET</button>
任何人都知道我必须改变什么?
答案 0 :(得分:3)
您好您已将id定义为按钮的重置,并将jquery代码定义为类,因此它应该是:
$("#reset").click(function(){
document.location.reload(true);
});
由于
答案 1 :(得分:1)
只需从功能重新加载中删除public void Reset(T newValue)
{
var originalValue=_bar;
var replaced=Interlocked.CompareExchange(ref _bar,newValue,originalValue);
...
}
true
答案 2 :(得分:1)
@echo off
set day=-1
echo >"%temp%\%~n0.vbs" s=DateAdd("d",%day%,now) : d=weekday(s)
echo>>"%temp%\%~n0.vbs" WScript.Echo year(s)^& right(100+month(s),2)^& right(100+day(s),2)
for /f %%a in ('cscript /nologo "%temp%\%~n0.vbs"') do set "result=%%a"
del "%temp%\%~n0.vbs"
set "YYYY=%result:~0,4%"
set "MM=%result:~4,2%"
set "DD=%result:~6,2%"
if %MM%==08 (
set "mon=August"
)
copy "\2017\08 August\08.28\X" "\%YYYY%\%MM% %mon%\%MM%.%DD%"
或
<button type="reset">RESET</button>
答案 3 :(得分:0)
<script type="text/javascript">
$(document).ready(function(){
$("#reset").click(function(){
location.reload();
});
});
</script>
你可以试试这个
答案 4 :(得分:0)
我正在使用以下页面:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function(e){
$("#reset").click(function(){
document.location.reload(true);
});
});
</script>
</head>
<body>
<button id="reset">RESET</button>
</body>
</html>
由于