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