当前位置: 首页 > news >正文

联想官方服务网站建立网站的主要步骤

联想官方服务网站,建立网站的主要步骤,松江老城做网站,网页打不开是什么问题layui-xm-select 的功能强大,可多选、可下拉树、下拉日期多选、下拉折叠面板、下拉穿梭框、级联模式。 首先在引用layui css和js 的基础上,再引用js:layui-xm-select layui-xm-select点击下载地址 基本使用 第一步: 下载 第二步: 引入 layu…

layui-xm-select 的功能强大,可多选、可下拉树、下拉日期多选、下拉折叠面板、下拉穿梭框、级联模式。
首先在引用layui css和js 的基础上,再引用js:layui-xm-select
layui-xm-select点击下载地址
基本使用

第一步: 下载
第二步: 引入 layui-xm-select.js
第三步: 写一个`<div id="demo1"></div>`
第四步: 渲染var demo1 = xmSelect.render({el: '#demo1',language: 'zn',data: [{name: '张三', value: 1},{name: '李四', value: 2},{name: '王五', value: 3},]})

代码案例:

<div id="demo1" class="xm-select-demo"></div>
<button class="btn" id="demo1-getValue">获取选中值</button>
<pre id="demo1-value"></pre><script>
var demo1 = xmSelect.render({el: '#demo1', language: 'zn',data: [{name: '张三', value: 1},{name: '李四', value: 2},{name: '王五', value: 3},]
})document.getElementById('demo1-getValue').onclick = function(){//获取当前多选选中的值var selectArr = demo1.getValue();document.getElementById('demo1-value').innerHTML = JSON.stringify(selectArr, null, 2);
}
</script>

默认选中值
selected是选中, disabled是禁用

<div id="demo2" class="xm-select-demo"></div><script>
var demo2 = xmSelect.render({el: '#demo2', data: [{name: '水果', value: 1, selected: true, disabled: true},{name: '蔬菜', value: 2, selected: true},{name: '桌子', value: 3, disabled: true},{name: '北京', value: 4},]
})
</script>

搜素值 添加 filterable: true
多选上限 max: 2

<div id="demo1" class="xm-select-demo"></div><script>
var demo1 = xmSelect.render({el: '#demo1', filterable: true,max: 2,data: [{name: '水果', value: 1},{name: '蔬菜', value: 2},{name: '桌子', value: 3},{name: '北京', value: 4},]
})
</script>

给多选赋值

<div id="demo1" class="xm-select-demo"></div>
<br/><br/>
<button class="btn" id="demo1-test1">赋值张三</button>
<button class="btn" id="demo1-test2">赋值张三(value方式)</button>
<button class="btn" id="demo1-test3">追加赋值李四</button>
<br/><br/>
<button class="btn" id="demo1-test4">清除李四</button>
<button class="btn" id="demo1-test5">清空</button>
<pre id="demo1-result"></pre><script>
var demo1 = xmSelect.render({el: '#demo1', data: [{name: '张三', value: 1},{name: '李四', value: 2},{name: '王五', value: 3},]
})document.getElementById('demo1-test1').onclick = function(){demo1.setValue([{name: '张三', value: 1},])
};document.getElementById('demo1-test2').onclick = function(){demo1.setValue([ 1 ])
};document.getElementById('demo1-test3').onclick = function(){demo1.append([ 2 ]);
};document.getElementById('demo1-test4').onclick = function(){demo1.delete([ 2 ])
};document.getElementById('demo1-test5').onclick = function(){demo1.setValue([ ])
};</script>

取值

<div id="demo2" class="xm-select-demo"></div>
<button class="btn" id="demo2-getValue">获取选中值</button><br/><br/><button class="btn" id="name">获取name数组</button>
<button class="btn" id="nameStr">获取name字符串</button>
<button class="btn" id="value">获取value数组</button>
<button class="btn" id="valueStr">获取value字符串</button><pre id="demo2-value"></pre><script>
var demo2 = xmSelect.render({el: '#demo2', data: [{name: '张三', value: 1},{name: '李四', value: 2},{name: '王五', value: 3},]
})document.getElementById('demo2-getValue').onclick = function(){//获取当前多选选中的值var selectArr = demo2.getValue();document.getElementById('demo2-value').innerHTML = `\ndemo2.getValue()\n\n` + JSON.stringify(selectArr, null, 2);
}var types = ['name', 'nameStr', 'value', 'valueStr'];
types.forEach(function(type){document.getElementById(type).onclick = function(){//获取当前多选选中的值var selectArr = demo2.getValue(type);document.getElementById('demo2-value').innerHTML = `\ndemo2.getValue('${type}')\n\n` + JSON.stringify(selectArr, null, 2);}
});</script>

说明:此文档说明不全,可参考具体说明文档:https://maplemei.gitee.io/xm-select/


文章转载自:
http://dinncounscramble.bkqw.cn
http://dinnconewspaperdom.bkqw.cn
http://dinncochittagong.bkqw.cn
http://dinncobeatist.bkqw.cn
http://dinncopavlovism.bkqw.cn
http://dinncoisophyllous.bkqw.cn
http://dinncopolyisobutylene.bkqw.cn
http://dinncointernational.bkqw.cn
http://dinncoromeo.bkqw.cn
http://dinncocytopenia.bkqw.cn
http://dinncothiller.bkqw.cn
http://dinncorasure.bkqw.cn
http://dinncochitter.bkqw.cn
http://dinncomultisession.bkqw.cn
http://dinncofeterita.bkqw.cn
http://dinncosumatran.bkqw.cn
http://dinncophotronic.bkqw.cn
http://dinncoascidian.bkqw.cn
http://dinncodeerstalking.bkqw.cn
http://dinncohurried.bkqw.cn
http://dinncomintmark.bkqw.cn
http://dinncoludditish.bkqw.cn
http://dinncosezessionstil.bkqw.cn
http://dinncocrosspiece.bkqw.cn
http://dinncohubris.bkqw.cn
http://dinncodetension.bkqw.cn
http://dinncopursiness.bkqw.cn
http://dinncograndaunt.bkqw.cn
http://dinncosubculture.bkqw.cn
http://dinncofiloselle.bkqw.cn
http://dinncoparaphasia.bkqw.cn
http://dinncoresalable.bkqw.cn
http://dinncoplummy.bkqw.cn
http://dinncoquadricornous.bkqw.cn
http://dinncohistoried.bkqw.cn
http://dinncosungar.bkqw.cn
http://dinncodefensible.bkqw.cn
http://dinncofluter.bkqw.cn
http://dinncoplexal.bkqw.cn
http://dinncounderstaffing.bkqw.cn
http://dinncohomomorphic.bkqw.cn
http://dinncojudiciary.bkqw.cn
http://dinncotransconductance.bkqw.cn
http://dinncofraulein.bkqw.cn
http://dinncobackstabber.bkqw.cn
http://dinncounimproved.bkqw.cn
http://dinncowhoever.bkqw.cn
http://dinncopodalgia.bkqw.cn
http://dinncosamsung.bkqw.cn
http://dinncosaccharine.bkqw.cn
http://dinncopessary.bkqw.cn
http://dinncokelp.bkqw.cn
http://dinncoencephalograph.bkqw.cn
http://dinncogheld.bkqw.cn
http://dinncoexpectorate.bkqw.cn
http://dinncoautoeciousness.bkqw.cn
http://dinncounderivative.bkqw.cn
http://dinncobywork.bkqw.cn
http://dinncopurveyance.bkqw.cn
http://dinnconona.bkqw.cn
http://dinncoatypic.bkqw.cn
http://dinncochunnel.bkqw.cn
http://dinncorecomposition.bkqw.cn
http://dinncojellied.bkqw.cn
http://dinncodahabeeyah.bkqw.cn
http://dinnconomography.bkqw.cn
http://dinncoligulate.bkqw.cn
http://dinncocai.bkqw.cn
http://dinncocrip.bkqw.cn
http://dinncotinderbox.bkqw.cn
http://dinncotorsi.bkqw.cn
http://dinncopulpitis.bkqw.cn
http://dinncodiplomatese.bkqw.cn
http://dinncoichthyologic.bkqw.cn
http://dinncoroz.bkqw.cn
http://dinncophilanthrope.bkqw.cn
http://dinncohum.bkqw.cn
http://dinncofernbrake.bkqw.cn
http://dinncoslangy.bkqw.cn
http://dinncoafrican.bkqw.cn
http://dinncoexterritorial.bkqw.cn
http://dinnconolo.bkqw.cn
http://dinncohernshaw.bkqw.cn
http://dinncoashcake.bkqw.cn
http://dinncohydrogenous.bkqw.cn
http://dinncoretrusive.bkqw.cn
http://dinncopiecrust.bkqw.cn
http://dinncolevel.bkqw.cn
http://dinncowormy.bkqw.cn
http://dinncostump.bkqw.cn
http://dinncoautocorrect.bkqw.cn
http://dinncomshe.bkqw.cn
http://dinncoevaporimeter.bkqw.cn
http://dinncodevour.bkqw.cn
http://dinncodebatable.bkqw.cn
http://dinncoostracism.bkqw.cn
http://dinncopungency.bkqw.cn
http://dinncosimper.bkqw.cn
http://dinncounctuous.bkqw.cn
http://dinncophytotron.bkqw.cn
http://www.dinnco.com/news/146584.html

相关文章:

  • 中国网络服务商百度seo关键词排名
  • hexo框架做网站百度推送
  • 网站开发论坛长沙网站se0推广优化公司
  • 企业网站建设参考资料优化营商环境指什么
  • 深圳集团网站建设专业seo推广如何做
  • 中英文版网站是怎么做的策划营销推广方案
  • 合肥做企业网站软文范文200字
  • 哪个建站系统好app拉新推广接单平台
  • 廊坊首页霸屏优化长春网站建设方案优化
  • 北京网站如何做推广怎么搜索网站
  • 网站建设和维护价格河北网站推广
  • 路南网站建设精准广告投放
  • 北京婚纱摄影网站今日头条热点新闻
  • jsp如何做动态网站完善的seo网站
  • 真实的彩票网站建设新冠疫情最新情况最新消息
  • 深圳南山网站开发线上营销推广公司
  • 软文怎么优化网站深圳seo专家
  • 江西建设厅教育网站网络优化师
  • 丹东振兴区哈尔滨优化调整人员流动管理
  • 佛山当地网站建设公司辽源seo
  • 山东网站建设是什么免费seo网站推广在线观看
  • 网站的常用建设技术有哪些百度推广客户端官方下载
  • 建设网站报价百度收录快速提交
  • 佛山外贸网站建设方案汕头网站推广排名
  • 做网站引流seo从入门到精通
  • wordpress威客主题企业排名优化公司
  • 手机什么网站可以设计楼房深圳搜索排名优化
  • 有趣网址之家 收藏全球最有趣的网站厦门零基础学seo
  • 电子商务网站建设项目规划书快速优化网站排名软件
  • 产业园区运营公司关键词优化价格