将复选框的代码原封不动地粘上后居然不显示
需要加入下列代码,监听form,才会显示控件
[removed]
layui.use('form', function () {
var form = layui.form;
});
[removed]
tab也是一样的原理,显示tab需要加上
[removed]
// tab控件必须有下面的代码,才可以切换
layui.use('element', function () {
var element = layui.element;
//一些事件监听
element.on('tab(demo)', function (data
About the Author
David C. Lay holds a B.A. from Aurora University (Illinois), and an M.A. and Ph.D. from the University of California at Los Angeles. David Lay has been an educator and research mathematician since 1966, mostly at the University of Maryland, College Park. He has also served as a visiting professor at the University of Amsterdam, the Free University in Amsterdam, and the University of Kaiserslautern, Germany. He has published more than 30 research articles on functional analysis and linear algebra. As a founding member of the NSF-sponsored Linear Algebra Curriculum Study Group.