mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-23 03:50:56 +08:00
19 lines
448 B
JavaScript
19 lines
448 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, index, prop) {
|
|
return item.name.toLowerCase().indexOf(val.toLowerCase()) !== -1;
|
|
}
|
|
});
|
|
|
|
}); |