layui给表单赋值

 $$.ajax({
                    type: 'get',
                    url: '/Home/GetCanshuData',
                    dataType: 'json',
                    success: function (result) {
                        form.val('example', {
                            "BaseStationState": result.BaseStationState,
                            "Base_IP": result.Base_IP,
                            "Base_Prot": result.Base_Prot
                        });
                        console.log(result);
                    }
                })

猜你喜欢

转载自blog.csdn.net/qq_40098572/article/details/102495863