2
<form onsubmit="return false">
這是行得通的。但停止窗體使用JavaScript?哪裏不對?
<form method="post" action="" onsubmit="off()">
function off(){return false);
不工作
<form onsubmit="return false">
這是行得通的。但停止窗體使用JavaScript?哪裏不對?
<form method="post" action="" onsubmit="off()">
function off(){return false);
不工作
您需要的返回值。
<form method="post" action="" onsubmit="return off();">
嘗試這樣的:
<form method="post" onsubmit="return off();" action="">