$("#kgmj1bh").blur(function () {
            var  mjbh=$("#kgmj1bh").val();
            $.ajax({
                url:"/rycsjyrest/selMjByMgbh"
                ,data:{
                    mjbh:mjbh
                }
                ,type:'post'
                ,success:function (result) {
                   if(result.message=='成功'){
                       document.getElementById("kgmj1").value =result.data.mjxm;
                   }else {
                       alert("无此编号的民警")
                       document.getElementById("kgmj1").value ='';
                   }

                }
            })
                return; ---加入一个返回类型return 可解决
        });
加入一个返回类型return 可解决

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
  • 2021-06-26
  • 2022-12-23
  • 2021-10-17
  • 2021-10-14
  • 2022-01-12
猜你喜欢
  • 2021-09-19
  • 2022-12-23
  • 2022-12-23
  • 2022-02-15
  • 2022-12-23
  • 2021-09-20
  • 2021-11-06
相关资源
相似解决方案