<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="createSelect.css">
<script src="jquery.js"></script>
<script src="createSelect.js"></script>
<title>Document</title>
</head>
<body>
<a href="./createSelect.rar">下载最新版</a>
<div id="test">
</div>
<script>
var select = new CreateSelect({
dom: '#test',
data: {
label: '客户分类',
list: [{
text: '起亚客户',
value: '0',
childs: {
label: '制作费用',
list: [{
text: '标准合同',
value: '0',
childs: {
label: '类型',
list: [{
text: '灯箱广告',
value: '0'
}, {
text: '电梯看板',
value: '1'
}, {
text: '驾校',
value: '2'
}, {
text: '楼宇液晶',
value: '3'
}]
}
}, {
text: '含制作费',
value: '1',
childs: {
label: '类型',
list: [{
text: '灯箱广告',
value: '0'
}, {
text: '电梯看板',
value: '1'
}, {
text: '驾校',
value: '2'
}]
}
}]
}
}, {
text: '非起亚客户',
value: '1',
childs: {
label: '制作费用',
list: [{
text: '电台',
value: '0'
}, {
text: '楼宇液晶',
value: '1'
}, {
text: '纸媒',
value: '2'
}, {
text: '桌贴',
value: '3'
}]
}
}]
},
onChange(arr) {
// console.log(arr)
}
});
setTimeout(() => {
select.setValue([{
value: '0'
}, {
value: '2'
}])
}, 300);
</script>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
createSelect.rar (4个子文件)
index.html 2KB
jquery.js 85KB
createSelect.css 290B
createSelect.js 5KB
共 4 条
- 1
资源评论
zlzhaoe
- 粉丝: 60
- 资源: 26
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功