Home > other >  "The data table, rounding Layui"
"The data table, rounding Layui"

Time:10-05

~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Development tools and key technology: VS MVC
Author: huang shanshan
Grade: 18 level
Write the date: July 12, 2019,
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

Form of initialization time
Parameter a:
Table. Render ({}) : used for form rendering method level, core method
# 1, elem: "demo",//specified original form table element selectors (recommended ID selector)
2, the url:/onedemo,//the address of the interface
3, id: "dataID",//the id for the data returned by the query table's primary key id
4, method: "POST",//the way to submit
5, cellMinWidth: "100",////global define the minimum width of conventional cell layui 2.2.1 new
6, where: {value: ""},//the other parameters of the interface, can be used for query condition
7, cols: [[]],//set the header, the value is a two-dimensional array, rendering method required
8, page: true,//open the page, the default is false, that is, don't open the page
Form need according to the condition query, need to use to form overloading: table. Reload ()

Table. Reload (id, option)//form the overloaded
Where: the other parameters of the interface,
Page: the page

Onchang () event,
1, onchang () understanding: events would occur when content changes, the duty change yes triggering event
Use case 1:
2, the use of a drop-down box to select the change of value to trigger this event:

3, select ID, to bind onchang events, access to change the value of the:


Use case 2:
(4), directly on the select element binding onchang () event:

5, create changevalue method, for change value:

CodePudding user response:

Like the main detailed data how to read
  • Related