//添加角色。 $.ajax({ type: "post", url: "/sysRole/list", data: {page: 1, limit: 1000}, success: function (result) { var persons = []; if (result.code == 200) {// qnId $.each(result.data, function (i, v) { persons.push({value:v.id,name:v.name}); }); formSelects.data('roleid', 'local', { arr:persons }); form.render('select'); } } });
后台是ids