1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-23 03:50:56 +08:00
2025-02-20 20:10:24 +08:00

20 lines
436 B
JavaScript

layui.use(['jquery'], function () {
var $ = layui.jquery;
var xmTags = JSON.parse($('input[name=xm_tags]').val());
xmSelect.render({
el: '#xm-tag-ids',
name: 'xm_tag_ids',
max: 3,
data: xmTags,
autoRow: true,
filterable: true,
filterMethod: function (val, item) {
return item.name.toLowerCase().indexOf(val.toLowerCase()) !== -1;
}
});
});