Edit D:\xinhaisoft\crisis_new\Scripts\layer\layer.helper.js
/** * layer??? * ????????2020.08.26 */ var currentwinlayer = layer var layer = top.layer || parent.layer || layer // ??????????????? layer.loading = layer.load $(function () { 'use strict' // ??????????????iframe????????????data-winsize="[650,300]"?????????title='xxx'????????rl??ref????ata-url??? $('a.win,input[type="button"].win,button.win').on('click', function (e) { e.preventDefault() var $this = $(this) var winsize = $this.data('winsize') || [750, 400] var title = ($this.attr('title') || $this.data('title') || $this.text() || $this.val()).replace(/ /g, '') || '?????' var url = $this.attr('href') || $this.data('url') if (url === '') { layer.msg('??????URL????????', { icon: 5 }) } else { // ???????????????????????http://www.cnblogs.com/ranran/p/3599025.html var a = document.createElement('a') a.href = url url = a.href // ?????? if (url.match(/qrcode\.htm/i)) { title = '????????' winsize = [600, 350] } else if (url.match(/studentinfo\.asp/i)) { title = '???/???' winsize = [650, 350] } else if (url.match(/recordview\.asp/i)) { winsize = [750, 400] } if (url.match(/\.(png|jpg|jpeg|gif)$/i)) { // ??? currentwinlayer.photos({ photos: { data: [{ src: url }] }, success: function () { $('div.layui-layer-imgsee').remove() } }) } else { // url layer.open({ type: 2, title: title, shadeClose: true, area: [winsize[0] + 'px', winsize[1] + 'px'], content: url }) } } }) // ?????? $('input[type="button"][value="?? ??"],button:contains("?? ??")').on('click', function () { var $input = $(this).prev('input[type="text"]') if ($input.length > 0) { var url = $input.val() if (url.match(/\.(png|jpg|jpeg|gif|webp)$/i)) { currentwinlayer.photos({ photos: { data: [{ src: url }] }, success: function () { $('div.layui-layer-imgsee').remove() } }) } else { layer.msg('????????????????????????????????????????') $input.trigger('focus') } } else { layer.msg('??????????????????????') } }) }) // ?????????layer??????????????????????????????????????????????,????????? function win_open(url, t, winsize, end) { 'use strict' if (typeof (winsize) === 'undefined') { winsize = [750, 400] } else { winsize = winsize.split(',') } var title = t || '?????' var a = document.createElement('a') a.href = url url = a.href if (url.match(/\.(png|jpg|jpeg|gif)$/i)) { currentwinlayer.photos({ photos: { data: [{ src: url }] }, success: function () { $('div.layui-layer-imgsee').remove() } }) } else if (typeof (end) === 'function') { layer.open({ type: 2, title: title, shadeClose: true, area: [winsize[0] + 'px', winsize[1] + 'px'], content: url, end: end }) } else { layer.open({ type: 2, title: title, shadeClose: true, area: [winsize[0] + 'px', winsize[1] + 'px'], content: url }) } } /* ??????????? layer.loading() layer.load() layer.msg('???????????????') layer.closeAll() layer.alert('???????????????') layer.open({title:'???',content:'???'}) */
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de