请问,在javaScript中,怎样跳出当前函数-----不运行后面的语句!
例如:
<script>
function check(form){
if(this.form1.mingcheng.value==0)
{
alert("请输入该文档的文件名");
this.form1.mingcheng.focus();
//应该调用哪个方法从这里跳出----------------------????
}
if(this.form1.bianhao.value==0)
{
alert("请输入该文档编号!");
this.form1.bianhao.focus();
}
</script>