layui编辑显示时,其他数据都正常,就是下拉框的数据不显示

图片说明

html页面:
<select name="test" id="test" multiple lay-search>
                            <option value="">请选择</option>
                        </select>

js:
var temphtml = "<option value='1'>1</option>";
            //下拉框增加选项
            $("#test").append(temphtml);

            //选中公司
            $("#test option[value='1']").attr("selected", "selected");
            form.render();

你引入Form模块了吗?layui.use('form', function(){var form = layui.form;});