Home > front end >  Pop-up code problems for help
Pop-up code problems for help

Time:10-21

 
<script>
Layui. Config ({
Version: '1568076536616'//in order to update the js cache, negligible
});

Layui. Use ([' layer '], function () {
Var layer=layui. Layer;//layer
Var $=layui. $;
$(" # model ") on (" click ", function () {
Layer. The open ({
Type:
2Title: 'title'
, area: [' 820 px ', '677 px]
Content: '/arf100'
, BTN: [' button (here to add a pop-up links) ', 'shut down']
, yes: the function index, layero {
Var iframeWindow=window [' layui - layer - the iframe + index];
Obj=iframeWindow. Document. GetElementById (" saveArtPontItemSetView ");
//save button click event
IframeWindow. Layui. Form. On (' submit (save), function (data) {
The console. The log (data);
return false;
});
Obj. Click ();

}
, cancel the function () {

}
, btn2: function () {
Layer. CloseAll ();
}



});
});


});
</script>

, BTN: [' button (here to add a pop-up links) ', 'shut down']

The BTN button above (here to add a pop-up links), here I'd like to add a pop-up window to add links to any url! ~ ~
  • Related