xm-select/docs/mds/XM02.md
2019-11-19 20:13:50 +08:00

532 B

国际化

英语

:::demo 目前仅支持中文英文, 如需更多语言, 可以clone代码进行二次开发

<div id="demo1" class="xm-select-demo"></div>
<div xid="demo2" class="xm-select-demo"></div>

<script>
var demo1 = xmSelect.render({
	el: '#demo1', 
	language: 'en',
	data: []
})
var demo2 = xmSelect.render({
	el: '[xid=demo2]', 
	language: 'en',
	data: [
		{name: 'apple', value: 1},
		{name: 'banana', value: 2},
		{name: 'orange', value: 3},
	]
})
</script>

:::