From cf59da811159e6d68ca83263ebe6e041112cb2c4 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 14 Nov 2023 03:36:35 +0000 Subject: [PATCH] =?UTF-8?q?Fast.api.open=E6=96=B0=E5=A2=9E=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E6=88=90=E5=8A=9F=E5=9B=9E=E8=B0=83=E6=96=B9=E6=B3=95?= =?UTF-8?q?=EF=BC=8C=E7=9B=91=E5=90=AC=E7=AA=97=E5=8F=A3=E6=89=93=E5=BC=80?= =?UTF-8?q?=E5=AE=8C=E6=AF=95=E5=90=8E=E6=89=A7=E8=A1=8C=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=20=E6=96=B0=E5=A2=9E=E4=B8=80=E4=B8=AA=E5=9B=9E=E8=B0=83?= =?UTF-8?q?=E6=96=B9=E6=B3=95=EF=BC=8C=E7=9B=91=E5=90=AC=E7=AA=97=E5=8F=A3?= =?UTF-8?q?=E6=89=93=E5=BC=80=E5=AE=8C=E6=88=90=E4=BA=86=EF=BC=8C=E7=84=B6?= =?UTF-8?q?=E5=90=8E=E5=B0=B1=E5=8F=AF=E4=BB=A5=E6=93=8D=E4=BD=9C=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E5=86=85=E7=9A=84=E5=85=83=E7=B4=A0=E4=BA=86=EF=BC=8C?= =?UTF-8?q?=E4=BE=8B=E5=A6=82=E5=BE=80=E7=AA=97=E5=8F=A3=E5=86=85=E5=86=99?= =?UTF-8?q?=E5=85=A5=E6=95=B0=E6=8D=AE=E7=AD=89=20=E4=BE=8B=E5=A6=82?= =?UTF-8?q?=EF=BC=9A=20Fast.api.open('./test/test.html','=E6=89=93?= =?UTF-8?q?=E5=BC=80=E7=AA=97=E5=8F=A3',{=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20successCallback:function?= =?UTF-8?q?(index){=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20console.log('=E7=AA=97=E5=8F=A3?= =?UTF-8?q?=E6=89=93=E5=BC=80=E5=AE=8C=E6=88=90=EF=BC=8C=E6=88=90=E5=8A=9F?= =?UTF-8?q?=E5=9B=9E=E8=B0=83=EF=BC=8C=E7=84=B6=E5=90=8E=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E7=AA=97=E5=8F=A3=E5=86=85=E7=9A=84=E5=85=83?= =?UTF-8?q?=E7=B4=A0=E4=BA=86');=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20var=20frame=20=3D=20L?= =?UTF-8?q?ayer.getChildFrame('html',=20index);=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20frame.?= =?UTF-8?q?find('[name=3D"row[name]"]').val("=E5=86=99=E5=85=A5=E5=86=85?= =?UTF-8?q?=E5=AE=B9")=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20}=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20})?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Simon --- public/assets/js/fast.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/assets/js/fast.js b/public/assets/js/fast.js index f963e9b4b..712ed83e6 100644 --- a/public/assets/js/fast.js +++ b/public/assets/js/fast.js @@ -143,6 +143,7 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, undefine area: area, content: url, zIndex: Layer.zIndex, + successCallback:null, success: function (layero, index) { var that = this; //存储callback事件 @@ -176,6 +177,7 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, undefine // observer.disconnect(); } } + that.successCallback && that.successCallback(index) } catch (e) { } -- Gitee