Comments (3)
自动填充影响布局
input.dataRange 增加 autocomplate = “off”
from alexuse.
treeSelect
layui.use(['treeSelect','form'], function () {
var treeSelect= layui.treeSelect;
treeSelect.render({
// 选择器
elem: '#tree',
// 数据
data: 'data/data3.json',
// 异步加载方式:get/post,默认get
type: 'get',
// 占位符
placeholder: '修改默认提示信息',
// 是否开启搜索功能:true/false,默认false
search: true,
// 点击回调
click: function(obj){
console.log(obj);
// obj.data 树形组件全部数据
// obj.current 树形组件当前点击 checked 是否选中 id name open children level 0 ~ n
// obj.data 树形组件全部数据
},
// 加载完成后的回调函数
success: function (d) {
console.log(d);
// 选中节点,根据id筛选
// treeSelect.checkNode('tree', 3);
// 获取zTree对象,可以调用zTree方法
// var treeObj = treeSelect.zTree('tree');
// console.log(treeObj);
// 刷新树结构
// treeSelect.refresh();
}
});
});
from alexuse.
一、 layui form.on('select(statistical)',function(){}) 全局
from alexuse.
Related Issues (20)
- css 样式问题 HOT 7
- js HOT 23
- CSS HOT 4
- TCP/IP HOT 1
- Web高效编程与优化
- serializeArr 转为 serializeJson
- 关于重构 HOT 1
- 从浏览器输入网址到页面展示完成发生了什么
- Echarts HOT 1
- 多文件上传 jquery.MultiFile
- 常用正则 HOT 1
- 隐藏 表单记录 多选框选中
- node 相关
- js 判断浏览器类型以及语言
- GIT HOT 2
- 工具使用
- 设计模式
- js高级(第三版) HOT 4
- 微信小程序 HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alexuse.