我想在表单提交之时限制不能为空我写了 add_constraintKjkmId.text !="" 这个当输入空格时验证依然通过
如何写个函数在提交之前将空格去除 要如何实现呢
加上 required="true"