可以这样
<input type='checkbox' name=mid[] value='".$id."' onclick=unselectall()>