current location:Home > Technical Articles > Web Front-end > Layui Tutorial
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- How to hide the layui slider
- How to hide the layui slider: first open the corresponding code file; then use the "content: ['/home/index/echartTest?role=2&wd='+host,'no']" method to disable the ifrma scroll bar display.
- Layui Tutorial 4011 2020-11-30 14:16:30
-
- How to clear form data in layui
- The method of clearing form data in layui: first create a form data; then implement monitoring submission; finally clear the form through "$("#addGoodsForm")[0].reset();".
- Layui Tutorial 5153 2020-11-30 15:12:07
-
- Implementation method of deleting the current row in layui data table
- How to delete the current row in the layui data table: first create a code sample file; then use the "oldData.splice(obj.tr.data('index'),1);" method to delete the current row.
- Layui Tutorial 4322 2020-11-30 13:57:34
-
- What is the read-only attribute of layui input?
- The readonly attribute of layui input is readonly, which specifies that the input field is read-only, and the readonly attribute prevents users from modifying the value until certain conditions are met.
- Layui Tutorial 6236 2020-11-24 10:47:25
-
- Layui calls the elastic layer method
- How to call the elastic layer in layui: 1. Reference the independent [layer.js] file, the code is like [<script src="layer.js"></script>]; 2. Call the layer module in layui, the code is like [ ayer.msg('hello');].
- Layui Tutorial 2595 2020-11-30 13:54:52
-
- How to use modularization in layui
- Layui uses a modular approach: follow layui's module specifications to create an entry file, and load the entry file through the layui use method, such as [layui.use(['layer'], function(){var layer = layui. layer}].
- Layui Tutorial 3615 2020-11-30 14:01:00
-
- How to use open attribute to hide button in layui
- Layui uses the open attribute to hide the button: This can be achieved by adding the style [closeBtn:0] in the [layer.open] method. Layer provides two styles of close buttons, which can be displayed by configuring 1 and 2.
- Layui Tutorial 5682 2020-11-30 13:48:01
-
- How to refresh the current tab in layui
- Layui's method of refreshing the current tab: You can use the reload method to refresh, such as [location.reload();]; the reload method is used to refresh the current document. The function of this method is similar to the refresh page button on the browser. .
- Layui Tutorial 6469 2020-11-30 11:56:05
-
- How to close the popup layer in layui
- How to close the pop-up layer in layui: through the [layer.closeAll();] method, this method can close all pop-up layers; if we only need to close the page layer, we can use the method [layer.closeAll('page') ;】to fulfill.
- Layui Tutorial 8762 2020-11-30 10:49:00
-
- How to get table data in layui
- Methods to obtain table data in layui: 1. Create a js object array to save the original data in the table; 2. Assign the data parameter of [table.render()] to the object array; 3. Get the data in tableContent. Can.
- Layui Tutorial 16114 2020-11-30 10:01:48
-
- How to close the current pop-up window in layui
- How to close the current pop-up window in layui: first get the name of the current window; then use [parent.layer.close(index);] to close the current window.
- Layui Tutorial 10469 2020-11-30 11:29:00
-
- How to use jquery in layui
- How to use jquery in layui: 1. Actively load the jquery module with statements such as "layui.use(['jquery', 'layer']...)"; 2. Through "layui.use('layer', function() {...}"method.
- Layui Tutorial 4112 2020-11-20 10:22:23
-
- How to customize the width and height of the layer in layui?
- The layer module in layui can use the area attribute to set the width and height. By default, the layer is adaptive in both width and height, but when you need to customize the width and height, you can use the "area:['width','height']" statement to set it, for example "area:['500px' ,'300px']".
- Layui Tutorial 4640 2020-11-20 10:13:14
-
- How to set input prohibition in layui input box
- How to disable input in the layui input box: first open the corresponding code file; then set the input box attribute to "disabled readonly class="layui-input layui-disabled"" to disable input.
- Layui Tutorial 10648 2020-11-20 10:13:06
-
- How to implement three-level linkage in layui
- The method for layui to implement three-level linkage: first create an html page; then create the [address.js] file with the content "Address.prototype.provinces = function(){...}"; finally implement the three-level linkage through the layui module That’s it.
- Layui Tutorial 5754 2021-04-15 10:52:05