这里我就不给大家详细说明了直接附图: js代码: layui.use(['layer', 'form','xform','layer'], function () { var element = layui.element; var form = layui.form; var layer = layui.layer; // 城市列表 $.ajax({ url:"/city/findById", type:"GET", async: false, cache: fa…
layui.use(['form', 'layer'], function () { var form = layui.form(); var layer = layui.layer; form.on('select(lay-filter)', function (data) { //触发内容 }); }); lay-filter为下拉框lay-filter属性…
<script language = "JavaScript"> //js开始 var aaa;//定义aaa变量 aaa=0;//aaa赋0 bb = new Array();//创建bb动态数组 <%count = 0 '定义bb数组下标变量 do while not rs.eof%>//循环所有记录 bb[<%=count%>] = new Array("<%= trim(rs("xiaoleiname"))…
layui.use('form', function () { var form = layui.form; form.on('select(Status)', function (data) { console.log(data); console.log(data.value); console.log(data.elem[data.elem.selectedIndex].text); }); });…
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <…