var set_select = null; layui.define(["jquery", "form"], function (exports) { var $ = layui.$; var ojb = { init: function () { $(document).on('input click','.input-select' ,function () { var url = $(this).attr('data-url'); let that = $(this); clearTimeout(set_select); set_select = setTimeout(function () { $.get(url + '?keyword=' + $(that).val(), function (res) { var data = res.data; if (data.length == 0) { that.next().hide(); return; } var dd_exist = (that.parent().find('dl')).length == 0 ? false : true; var html = dd_exist ? '' : '