cdx*_*dxf 2 html javascript forms function
<form onsubmit="return false">
Run Code Online (Sandbox Code Playgroud)
那是有效的.但
<form method="post" action="" onsubmit="off()">
function off(){return false);
Run Code Online (Sandbox Code Playgroud)
不行
您需要返回值.
<form method="post" action="" onsubmit="return off();">
Run Code Online (Sandbox Code Playgroud)