Layui adds a picture button and click on the jump page.

  
Layui adds a picture button and click on the jump page.插图 2. Definition button
Layui.Use (‘Table’, Function () {var table = layui.table; table.render ({elem: ‘#test’, URL: ‘JSON / TABLE.JSON’, HEIGHT: ‘877’, COLS:[[{Type: ‘Checkbox’, Toolbar: ‘ #toolbtn ‘, MinWidth: 10}, {Type:’ NN ‘, Toolbar:’ # Toolbtn ‘, MinWidth: 10}, {Field:’ ID ‘, Title:’ Order No. ‘, MinWidth: 210}]]}) })

3. Click on jump

   Table.on ('Tool) Menu-filter) ', function (obj) {// declared button var data = obj.data; var dataid = data.dataid; var itemcode = data.code; if (obj.event == "down") {var Name = data.name; var URL = "ORDERLISTDETAILS.HTML"; Layer.Open{TYPE: 2, // Title: Name + '- Status Details', Title: "Order Management List Details", ShadeClose: True, Shade: 0.8, Offset: "200PX", Move: False, Area: ['1300px' , '570px'], Content: [URL] / Content: $ ("# table1") This page pops up id = Table window})}}) 

4.

 The above is the example of adding a picture button and click on the jump page. It is the full content of Xiaobian sharing to everyone. Hope I can give you a reference, I also hope that everyone will support Tumi Clouds.                      
© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment