<input type="text" value="" name="toPage"> 判断该表单是否为空 var p = $("input[name='toPage']").val(); if(p=''){ alert('error'); } 相关文章: 2021-11-28 2021-11-28 2021-11-27 2021-12-04 2021-11-28 2021-12-10 2021-11-05 2021-12-07