我觉得没错呀!
当然也可以用onsubmit="return del()"
在del()函数中添加上"return false/true".